diff --git a/src/base/convert_to.h b/src/base/convert_to.h index a3bf8ce6e..ef7771bbe 100644 --- a/src/base/convert_to.h +++ b/src/base/convert_to.h @@ -17,7 +17,11 @@ namespace base { // Undefined convertion template To convert_to(const From& from) { - enum { not_supported = 1/(1 == 0) }; // static_assert(false) + // As this function doesn't return a value, if a specialization is + // not found, a compiler error will be thrown (which means that + // the conversion isn't supported). + + // TODO Use a static_assert(false) } template<> int convert_to(const base::string& from);