[C++-sig] variant_adaptor

2016-03-19 Thread Mario Lang
Hi. While I haven't really found a way to get reference semantics (hints appreciated), I have now made my discoveries from https://blind.guru/boost_python-and-boost_variant.html into a handy little utility class. This is the best I was able to figure out regarding integration of boost::python wit

[C++-sig] [Boost.Python] Treating boost::variant like a reference?

2015-08-11 Thread Mario Lang
Hi. I am trying (off and on, because it would be useful, but I am not quite there yet) to find a way to make Boost.Python cooperate with Boost.Variant. I sort of managed to make a variant behave like a value. However, things like modification of a variant inside of a container doesn't work, beca

Re: [C++-sig] undefined symbol: _ZTIN5boost6python15instance_holderE

2015-05-19 Thread Mario Lang
David Aldrich writes: > I have an application that uses Boost Python. It links and runs fine on > Centos 5 systems but fails on an Ubuntu 14.04 LTS system. > > The code that uses Boost Python is compiled using: > > g++ -c -Wall -m64 -DPYTHON_ENABLE -I../Kernel -I/usr/include/python2.7 > -I/usr/