|
Boost Users : |
Subject: Re: [Boost-users] [Proto] POD expression can't be used in std::vector
From: Eric Niebler (eric_at_[hidden])
Date: 2008-11-23 14:16:37
Joel Falcou wrote:
> Eric Niebler a écrit :
>>
>> Please post the code that reproduces the error. I'll try to get ICC
>> set up on my Linux box.
>>
> Here is a stripped down code that exhibits the bug
> (see attached file)
>
> Command-line invocation is inside the main.cpp
Looks like the intel compiler has a bug with ADL. You can work around it
by changing the definition of cmplx to this:
template<class T, typename Dummy = bp::is_proto_expr>
struct cmplx ...
Note the extra Dummy template parameter, which will cause ADL to find
the operators defined in Proto's namespace.
HTH,
-- Eric Niebler BoostPro Computing www.boostpro.com
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net