From 67d06f9697793f987afa08bc1c82a9d2670c9917 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 17 Jan 2014 12:49:09 +0200 Subject: Handle query column exporting for composite value types A composite value is represented in query_columns as a nested struct. Even though the query_columns template instantiation is exported, VC++ for some reason doesn't appear to also export the nested structs. To work around this, nested structs have to have the export macro in the declaration. But that's not it: we also have to declare the nested structs extern, just like the outer template instantiation itself. --- odb/context.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'odb/context.hxx') diff --git a/odb/context.hxx b/odb/context.hxx index e0238dd..41428d0 100644 --- a/odb/context.hxx +++ b/odb/context.hxx @@ -1227,7 +1227,7 @@ public: // extern and export symbols. // void - inst_header (bool decl); + inst_header (bool decl, bool omit_exp = false); // Counts and other information. // -- cgit v1.1