Hi,
current CVS HEAD fails to compile some of the tests when configured
--without-boost --with-sqlite3 (and no boost installed).
This patch protects more boost-dependent tests with '#ifdef
BOOST_VERSION', please consider applying.
Best, maw
--- soci-cvs-20090411.orig/src/core/test/common-tests.h 2008-09-22
11:02:31.000000000 +0200
+++ soci/src/core/test/common-tests.h 2009-04-11 23:26:30.000000000 +0200
@@ -11,11 +11,14 @@
#include "soci.h"
#include "soci-config.h"
+#ifdef BOOST_VERSION
// explicitly pull conversions for Boost's optional, tuple and fusion:
#include <boost/version.hpp>
#include <boost-optional.h>
#include <boost-tuple.h>
#include <boost-gregorian-date.h>
+#endif // BOOST_VERSION
+
#if defined(BOOST_VERSION) && BOOST_VERSION >= 103500
#include <boost-fusion.h>
#endif // BOOST_VERSION
@@ -2675,6 +2678,7 @@
// (both into and use)
void test26()
{
+#ifdef BOOST_VERSION
session sql(backEndFactory_, connectString_);
// create and populate the test table
@@ -2967,6 +2971,7 @@
}
std::cout << "test 26 passed" << std::endl;
+#endif // BOOST_VERSION
}
// connection and reconnection tests
@@ -3037,6 +3042,7 @@
void test28()
{
+#ifdef BOOST_VERSION
session sql(backEndFactory_, connectString_);
auto_table_creator tableCreator(tc_.table_creator_2(sql));
@@ -3180,6 +3186,7 @@
}
std::cout << "test 28 passed" << std::endl;
+#endif // BOOST_VERSION
}
void test29()
@@ -3338,6 +3345,7 @@
// test for boost::gregorian::date
void test30()
{
+#ifdef BOOST_VERSION
session sql(backEndFactory_, connectString_);
{
@@ -3388,6 +3396,7 @@
}
std::cout << "test 30 passed" << std::endl;
+#endif // BOOST_VERSION
}
}; // class common_tests
--
m...@{dont.,}beevil.org
------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Soci-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/soci-users