[odb-users] Cannot suppress inline file creation
Ben Morgan
neembi at gmail.com
Thu Feb 7 08:05:31 EST 2013
Thanks for the quick response!
On Thu, Feb 7, 2013 at 1:52 PM, Boris Kolpackov <boris at codesynthesis.com>wrote:
> It won't be difficult to support it in the upcoming 2.2.0, but I am
> wondering why you want to suppress the inline function? You are the
> first person asking for this since the ODB's first release...
Well... perhaps I am doing something very unnatural...
I'm trying to make a library that a number of programs will use to access a
database.
So I go for this structure:
include/mylib
datatype_headers.hpp
...
odb/
datatype_headers.hxx
So the idea is to be able to have other programs be able to include
<mylib/datatype.hpp> and if needed <mylib/odb/datatype.hxx>.
But datatype.hxx needs to refer to datatype.hpp, soo I use
--include-prefix, but then at the bottom there is also #include
"../datatype.ixx",
which is in the same directory though!
(I solved this problem now by using --include-regex). If you think my
naming/structure is bad, please tell me.
This is only my second serious library (attempt). I had to hack enough with
"--ixx-suffix ixx and --odb-file-suffix .", etc. to get it as is -
which almost suggests that I'm doing something wrong...
Ben
More information about the odb-users
mailing list