aboutsummaryrefslogtreecommitdiff
path: root/odb
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2014-10-27 14:32:17 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2014-10-27 14:32:17 +0200
commitcf2dc5ebab039f59f5ee1ea738449b79a8ebca80 (patch)
treeb267199410768afeb6ec9e1841be388bc203b536 /odb
parent7a35cbf78bd20c7e5df8ccc2abd991c5463cebd1 (diff)
Add static const to object_traits dummy specialization
VC++ needs it for some reason.
Diffstat (limited to 'odb')
-rw-r--r--odb/traits.hxx8
1 files 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 <typename T>
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 <typename T, typename P>