From c3ea6cc62c531f3567ffff8ee3888f8e0365c246 Mon Sep 17 00:00:00 2001 From: Eric Frias Date: Tue, 22 Apr 2014 17:55:46 -0400 Subject: [PATCH] Assert to warn when calling unimplemented functions --- src/io/iostream.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/io/iostream.cpp b/src/io/iostream.cpp index 1f9b6a4..5a01cc7 100644 --- a/src/io/iostream.cpp +++ b/src/io/iostream.cpp @@ -264,12 +264,14 @@ namespace fc { istream& operator>>( istream& o, std::string& v ) { + assert(false && "not implemented"); return o; } #ifdef USE_FC_STRING istream& operator>>( istream& o, fc::string& v ) { + assert(false && "not implemented"); return o; } #endif @@ -282,51 +284,61 @@ namespace fc { istream& operator>>( istream& o, double& v ) { + assert(false && "not implemented"); return o; } istream& operator>>( istream& o, float& v ) { + assert(false && "not implemented"); return o; } istream& operator>>( istream& o, int64_t& v ) { + assert(false && "not implemented"); return o; } istream& operator>>( istream& o, uint64_t& v ) { + assert(false && "not implemented"); return o; } istream& operator>>( istream& o, int32_t& v ) { + assert(false && "not implemented"); return o; } istream& operator>>( istream& o, uint32_t& v ) { + assert(false && "not implemented"); return o; } istream& operator>>( istream& o, int16_t& v ) { + assert(false && "not implemented"); return o; } istream& operator>>( istream& o, uint16_t& v ) { + assert(false && "not implemented"); return o; } istream& operator>>( istream& o, int8_t& v ) { + assert(false && "not implemented"); return o; } istream& operator>>( istream& o, uint8_t& v ) { + assert(false && "not implemented"); return o; }