Boost logo

Boost Users :

Subject: Re: [Boost-users] OT: Why can't I insert a vector of int
From: Patrick Horgan (phorgan1_at_[hidden])
Date: 2011-03-28 17:27:38


On 03/28/2011 11:48 AM, Andrew Sutton wrote:
>> 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


Thank you:)


Patrick



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