From cf2dc5ebab039f59f5ee1ea738449b79a8ebca80 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 27 Oct 2014 14:32:17 +0200 Subject: Add static const to object_traits dummy specialization VC++ needs it for some reason. --- odb/traits.hxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/odb/traits.hxx b/odb/traits.hxx index 5dfee3a..3836332 100644 --- a/odb/traits.hxx +++ b/odb/traits.hxx @@ -20,15 +20,17 @@ namespace odb template class access::object_traits { - // If a C++ compiler issues an error pointing to this c;ass and saying - // that it missing some declaration, then you are most likely trying to - // perform a database operation on a C++ type that is not a persistent + // If a C++ compiler issues an error pointing to this class and saying + // that it is missing some declaration, then you are most likely trying + // to perform a database operation on a C++ type that is not a persistent // object. Or you forgot to include the corresponding -odb.hxx file. // public: struct id_type {}; typedef T object_type; typedef T* pointer_type; + + static const bool polymorphic = false; }; template -- cgit v1.1