diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-10-22 11:23:21 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-10-22 11:23:21 +0200 |
commit | f4c94ca015b123ec01037e521582d3a04f4c4b81 (patch) | |
tree | 21492eece1c7e8c16c8128a5986d7cc3c163345a /tracer/include/obj2.hxx | |
parent | c2bb4633ac31e1933908dc73476ce9ddffff8dad (diff) |
Implement inclusion of dependant -odb headers
New test: tracer/include.
Diffstat (limited to 'tracer/include/obj2.hxx')
-rw-r--r-- | tracer/include/obj2.hxx | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/tracer/include/obj2.hxx b/tracer/include/obj2.hxx new file mode 100644 index 0000000..d29cbad --- /dev/null +++ b/tracer/include/obj2.hxx @@ -0,0 +1,27 @@ +// file : tracer/include/obj2.hxx +// author : Boris Kolpackov <boris@codesynthesis.com> +// copyright : Copyright (c) 2009-2010 Code Synthesis Tools CC +// license : GNU GPL v2; see accompanying LICENSE file + +#ifndef OBJ2_HXX +#define OBJ2_HXX + +#include <odb/core.hxx> + +#pragma db object +struct object2 +{ + object2 (unsigned long id) + : id_ (id) + { + } + + object2 () + { + } + + #pragma db id + unsigned long id_; +}; + +#endif // OBJ2_HXX |