Boost logo

Boost Users :

Subject: Re: [Boost-users] [Proto] POD expression can't be used in std::vector
From: Hartmut Kaiser (hartmut.kaiser_at_[hidden])
Date: 2008-11-23 16:01:45


> You should, if you (or someone) can confirm it happens on Intel 11.0
> also. Here is a simple repro:
>
> namespace N
> {
> struct S {};
> template<class T, class U>
> void operator+(T const &, U const &) {}
> }
>
> template<class T> struct X {};
> struct Y : X<N::S> {};
>
> int main()
> {
> Y y;
> y+y;
> }
>
> The above code compiles with gcc but doesn't with Intel 10.1

Intel 11.0 (Windows):

t.cpp
t.cpp(13): error: no operator "+" matches these operands
            operand types are: Y + Y
       y+y;
        ^

Regards Hartmut


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