[odb-users] ODB compiler support for variable templates?

Boris Kolpackov boris at codesynthesis.com
Mon Aug 1 12:31:20 EDT 2016


Hi Steve,

Hales, Steve <Steve.Hales at garmin.com> writes:

> Does the 2.4.0 compiler support C++ 14 variable templates?

The 2.4.0 ODB compiler binary for Mac OS was built with GCC 4.9.3.
Variable templates are supported from GCC 5. We will upgrade GCC
in the next release of ODB. In the meantime, I believe excluding
these definitions from the ODB compilation should be a fairly
simple workaround:

#ifndef ODB_COMPILER

 ...
 
#endif

Boris



More information about the odb-users mailing list