From 20c2f6cde170e1a8703858e17530fcf68e4efbe4 Mon Sep 17 00:00:00 2001 From: Constantin Michael Date: Tue, 8 Nov 2011 13:42:45 +0200 Subject: Add tests for Oracle support of the Boost profile --- boost/oracle/date-time/test.hxx | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 boost/oracle/date-time/test.hxx (limited to 'boost/oracle/date-time/test.hxx') diff --git a/boost/oracle/date-time/test.hxx b/boost/oracle/date-time/test.hxx new file mode 100644 index 0000000..ef5455a --- /dev/null +++ b/boost/oracle/date-time/test.hxx @@ -0,0 +1,41 @@ +// file : boost/oracle/date-time/test.hxx +// author : Constantin Michael +// copyright : Copyright (c) 2009-2011 Code Synthesis Tools CC +// license : GNU GPL v2; see accompanying LICENSE file + +#ifndef TEST_HXX +#define TEST_HXX + +#include + +#include +#include + +#include + +#pragma db object +struct object +{ + object () + { + } + + bool + operator== (const object& x) const + { + return + id == x.id && + dates == x.dates && + times == x.times && + durations == x.durations; + } + + #pragma db id auto + unsigned long id; + + std::vector dates; + std::vector times; + std::vector durations; +}; + +#endif // TEST_HXX -- cgit v1.1