[C++-sig] Re: Re: possible handle_exception_impl error

David Abrahams dave at boost-consulting.com
Thu Nov 21 02:38:56 CET 2002


"Mike Rovner" <mike at bindkey.com> writes:

> "David Abrahams" <dave at boost-consulting.com> wrote in message
> news:u8yznagqx.fsf at boost-consulting.com...
>> "Mike Rovner" <mike at bindkey.com> writes:
>>
>> > The code above is working fine standalone, but crashes as part of
>> > bigger module. :(
>> >
>> > Apparently my namespace clashes with boost::python. :(
>>
>> Why do you draw that conclusion?
>
> Because I stripped down to this:
>
> #include <boost/python.hpp>
> #include "Tcn.h"
>
> using namespace boost::python;
> using namespace Tcn;
>
> BOOST_PYTHON_MODULE(bpl_t3)
> {
>   class_<LayerDef>("Layer", init<const char*>())
>     .add_property("name", (const char* (LayerDef::*)())&LayerDef::Name)
>     ;
> }
>
> and Tcn supposed to be a library I'm wrapping.

I still don't see how that could lead to the conclusion that there's a
namespace conflict. And if there was, you could ditch the
using-directives and go with some amount of qualification instead.

>> I think it's much more likely that your bigger module has a bug
>> somewhere.
>
> Ideally it's not buggy but in reality....
> And be sure it's not mine :(


Best of luck to you.

-- 
                       David Abrahams
   dave at boost-consulting.com * http://www.boost-consulting.com
Boost support, enhancements, training, and commercial distribution





More information about the Cplusplus-sig mailing list