for example boost::function is moved almost entirely to std::function, the same is with boost::shared_ptr
But I can’t find std::any?
Was it renamed or was not it placed in new standard at all by any reason?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Not every library from boost makes it into the standard (and even those that do may have components removed). Generally the commitee is pretty conservative when it comes to adding to the standardlibrary (since it’s next to impossible to get something removed at a later point if the inclusion was a mistake (.e.g. because there is a better alternative)).
boost::functionandboost::shared_ptrwhere pretty much a given for inclusion since they where already part oftr1.boost::anyon the other hand did not make the cut. It might however be included in the standard library at a later point (e.g. in the next technical report, look here). Whileboost::anyis nice to have, I wouldn’t rate it as quite as important as e.g.shared_ptr.Concluding:
boost::anyis not part of C++11, since the committee didn’t see any pressing need to include it