
30 Jan
2005
30 Jan
'05
7:39 p.m.
Jonathan Turkanis wrote:
Here, again, unless you know how to determine whether an object has a trivial default constructor, we'd have to put the burden on the user. E.g.,
BOOST_IDL_BEGIN(IBar) BOOST_IDL_DEFAULT_CTOR() ... BOOST_IDL_END(IBar)
This case doesn't seem as useful as clone, IMO.
Also, it's important to note that adding more than a tightly controlled handful of functions to interface tables can lead to code bloat, even when these functions are not used.
I stuck this last sentence in the wrong place. As long as the extra functions have to be declared in an interface, there should be no unnecessary bloat, assuming you don't declare them if you don't need them. Jonathan