From 1a11fe37115dedb973fa5f3bb7fe62de9d7bd615 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 15 Apr 2018 11:51:12 +0200 Subject: Workaround for few compiler warnings --- bdep/wrapper-traits.hxx | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'bdep/wrapper-traits.hxx') diff --git a/bdep/wrapper-traits.hxx b/bdep/wrapper-traits.hxx index 80b0cff..f4479f7 100644 --- a/bdep/wrapper-traits.hxx +++ b/bdep/wrapper-traits.hxx @@ -5,6 +5,8 @@ #ifndef BDEP_WRAPPER_TRAITS_HXX #define BDEP_WRAPPER_TRAITS_HXX +#include + #include #include @@ -54,6 +56,16 @@ namespace odb return const_cast (*o); } }; + + // These magic incantations are necessary to get portable generated + // code (without these because of the way GCC works uint64_t will be + // spelled as unsigned long which will break on Windows). + // + using optional_uint64_t = butl::optional; + using optional_uint64_traits = odb::wrapper_traits; +#ifdef ODB_COMPILER + template class odb::wrapper_traits; +#endif } #endif // BDEP_WRAPPER_TRAITS_HXX -- cgit v1.1