allow reflecting a pqxx::result::size_type on windows
This commit is contained in:
parent
4ddc8f053b
commit
a62f7d2e87
1 changed files with 7 additions and 0 deletions
|
|
@ -115,6 +115,8 @@ namespace fc
|
||||||
|
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
void to_variant( size_t s, variant& v );
|
void to_variant( size_t s, variant& v );
|
||||||
|
#elif defined(_MSC_VER)
|
||||||
|
void to_variant( unsigned long s, variant& v);
|
||||||
#elif !defined(_MSC_VER)
|
#elif !defined(_MSC_VER)
|
||||||
void to_variant( long long int s, variant& v );
|
void to_variant( long long int s, variant& v );
|
||||||
void to_variant( unsigned long long int s, variant& v );
|
void to_variant( unsigned long long int s, variant& v );
|
||||||
|
|
@ -487,6 +489,11 @@ namespace fc
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
inline void to_variant( size_t s, variant& v ) { v = variant(uint64_t(s)); }
|
inline void to_variant( size_t s, variant& v ) { v = variant(uint64_t(s)); }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
inline void to_variant( unsigned long s, variant& v) { v = variant(uint64_t(s)); }
|
||||||
|
#endif
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
void to_variant( const std::shared_ptr<T>& var, variant& vo )
|
void to_variant( const std::shared_ptr<T>& var, variant& vo )
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue