On Fri, Aug 15, 2008 at 8:43 PM, Hicham Mouline <hicham@mouline.org> wrote:
Is there an agreed convention/style as to where such a header file should lie?
My namespace hierarchy reflects my directory structure, so this is like asking
in which namespace should i put this metafunction.

I would recommend that your directory structure reflects your namespace hierarchy - not the other way around. There's a small but subtle difference.

I would have like to see such metafunctions already in boost::mpl.,
so should/can i highjack boost::mpl namespace in my header?

Declaring your stuff inside other people's namespaces is generally a pretty bad idea. It may not be clear to users which features really are part of boost::mpl, and which are not. Plus you'll have one namespace #included from two different locations - this could be very confusing.

or put it at toplevel right below my namespace ?

Put it in your own namespace :)

Rich