
12 Sep
2011
12 Sep
'11
9:45 a.m.
On 09/11/2011 07:18 PM, John Maddock wrote:
* GCC-4.4.x fails to compile the code due to clashes between boost::math::complement (a function) and boost::proto::complement (a class). I suspect this is an old gcc bug (finding structures via ADL) -
Could you demonstrate the problem?
I guess the solution is to not derive my number type from a proto-type so ADL can't find proto:: classes? Or will I hit this from some other unforeseen lookup?
The solution to ADL problems is usually to set up your namespaces correctly or to qualify.
* the code above gets instantiated from deep within Boost.Math's internals.
Why do you need to use Proto in the internals?