This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: std::pair copy and move constructor


On 5 March 2013 20:36, François Dumont wrote:
>
>     I finally wonder if the compiler couldn't help here. If the copy
> assignment is deleted why wouldn't the compiler try to use the template
> assignment operator ?

If an operation is deleted that means the class author (implicitly or
explicitly) said "this operation is not allowed"

If the compiler finds a way to work around the author's intention by
choosing a different function then what's the point in having deleted
functions?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]