- Timestamp:
- Sep 8, 2008, 6:47:51 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core3/src/util/Convert.h
r1743 r1744 77 77 struct TemplateDebugger 78 78 { 79 static int debug(int c, int d) { BOOST_STATIC_ASSERT(0); }79 static int debug(int c, int d) { return 0; } //BOOST_STATIC_ASSERT(0); } 80 80 }; 81 81 … … 100 100 // We have to make sure noboy uses it, so a good compiler error would be nice. 101 101 *output = (AnyToType)input; // Do not use this function! 102 BOOST_STATIC_ASSERT(0); // just to be sure 102 //BOOST_STATIC_ASSERT(0); // just to be sure 103 return *(new conversionTests::VeryBigStruct()); 103 104 } 104 105 } … … 118 119 private: 119 120 static VerySmallStruct test(ToType); // only accepts ToType, but is preferred over '...' 120 static VeryBigStruct test(...); // accepts anything 121 template <class AnyType> 122 static VeryBigStruct test(const AnyType anything); // accepts anything 121 123 static FromType object; // helper object to handle private c'tor and d'tor 122 124 public: … … 357 359 // convert from const char* via std::string 358 360 static bool convert(ToType* output, const char* input) 359 { return Converter<ToType, std::string >::convert(output, input); }361 { return Converter<ToType, std::string, Dummy>::convert(output, input); } 360 362 }; 361 363 #if 0
Note: See TracChangeset
for help on using the changeset viewer.