// file : odb/sqlite/details/conversion.hxx // copyright : Copyright (c) 2009-2017 Code Synthesis Tools CC // license : GNU GPL v2; see accompanying LICENSE file #ifndef ODB_SQLITE_DETAILS_CONVERSION_HXX #define ODB_SQLITE_DETAILS_CONVERSION_HXX #include #include namespace odb { // @@ Revise this. // namespace details {} namespace sqlite { namespace details { using namespace odb::details; // Detect whether conversion is specified in type_traits. // template meta::yes conversion_p_test (typename type_traits::conversion*); template meta::no conversion_p_test (...); template struct conversion_p { static const bool value = sizeof (conversion_p_test (0)) == sizeof (meta::yes); }; template ::value> struct conversion; template struct conversion { static const char* to () {return type_traits::conversion::to ();} }; template struct conversion { static const char* to () {return 0;} }; } } } #endif // ODB_SQLITE_DETAILS_CONVERSION_HXX