Boost logo

Boost Users :

Subject: Re: [Boost-users] OT: Why can't I insert a vector of int
From: Andrew Sutton (asutton.list_at_[hidden])
Date: 2011-03-28 14:48:28


>    void operator<<(std::vector<const T> t){ std::cout << "Got a vector of
>

Because this overload matches "const T". The vector declared in your
main is "vector<int>". Template argument deduction won't match
vector<int> because isn't of the form vector<const int>.

Andrew


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