aboutsummaryrefslogtreecommitdiff
path: root/common/relationship-query/driver.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-02-28 12:46:48 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-02-28 12:46:48 +0200
commit439bc0ff201f38025d224ce421c86ca44f3dc063 (patch)
tree71d9f025b3ee1dc1a49f83584c2e21a88cc048cd /common/relationship-query/driver.cxx
parent564700ab7c96b671b0c08a37e9a0e50f4b2fc176 (diff)
Test std::shared_ptr in C++11 mode and std::tr1::shared_ptr in C++98 mode
Diffstat (limited to 'common/relationship-query/driver.cxx')
-rw-r--r--common/relationship-query/driver.cxx9
1 files changed, 4 insertions, 5 deletions
diff --git a/common/relationship-query/driver.cxx b/common/relationship-query/driver.cxx
index 56d1f14..58bbef5 100644
--- a/common/relationship-query/driver.cxx
+++ b/common/relationship-query/driver.cxx
@@ -13,7 +13,7 @@
#include <odb/database.hxx>
#include <odb/transaction.hxx>
-#include <common/config.hxx> // HAVE_TR1_MEMORY
+#include <common/config.hxx> // HAVE_CXX11, HAVE_TR1_MEMORY
#include <common/common.hxx>
#include "test.hxx"
@@ -29,9 +29,7 @@ main (int argc, char* argv[])
{
auto_ptr<database> db (create_database (argc, argv));
-#ifdef HAVE_TR1_MEMORY
-
- using std::tr1::shared_ptr;
+#if defined(HAVE_CXX11) || defined(HAVE_TR1_MEMORY)
//
//
@@ -164,7 +162,8 @@ main (int argc, char* argv[])
t.commit ();
}
-#endif
+#endif // HAVE_CXX11 || HAVE_TR1_MEMORY
+
}
catch (const odb::exception& e)
{