diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2013-10-15 07:01:17 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2013-10-15 07:01:17 +0200 |
commit | a482f1c4dd4efab83d3b19309900f1cbf54383a5 (patch) | |
tree | 3c1ab27e420cbf760a54a1c4be61bbd0448a4873 /odb/relational/mssql | |
parent | 400d258aab3722be3a4b8548870afad1574f3ad8 (diff) |
Automatically map C++11 enum classes (strong enums)
Diffstat (limited to 'odb/relational/mssql')
-rw-r--r-- | odb/relational/mssql/context.cxx | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/odb/relational/mssql/context.cxx b/odb/relational/mssql/context.cxx index 1df235d..a0037eb 100644 --- a/odb/relational/mssql/context.cxx +++ b/odb/relational/mssql/context.cxx @@ -156,18 +156,11 @@ namespace relational if (!r.empty ()) return r; - using semantics::enum_; using semantics::array; - // Enum mapping. - // - if (t.is_a<semantics::enum_> ()) - { - r = "INT"; - } // char[N] mapping. // - else if (array* a = dynamic_cast<array*> (&t)) + if (array* a = dynamic_cast<array*> (&t)) { semantics::type& bt (a->base_type ()); bool c (bt.is_a<semantics::fund_char> ()); |