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: Deprecated std::bind2nd in <bits/random.tcc>


Hi,

On 02/12/2013 12:02 AM, Morwenn Edrahir wrote:
I recently tried to compile some C++11 program that does not use any
deprecated feature from C++03 with option -D_GLIBCXX_USE_DEPRECATED=0.
I thought it would improve the compile time.

However, it does not compile since the function std::bind2nd is still used into the file <bits/random.tcc>.

Should the library be changed so that valid C++11 code does not have to rely on deprecated features anymore?
Bah. In the *specific* case at issue, I suppose we can as well do away with the binding dance, because we always have the same __transform and the same std::divides functor. Probably it made sense when the initiali <random> code went in. For 4.8 I'm finishing testing the below.

Thanks,
Paolo.

///////////////////////








Attachment: patchlet
Description: Text document


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