-
Notifications
You must be signed in to change notification settings - Fork 666
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[REQUEST] Deprecate boost::any
in favor of std::any
#957
Comments
Hi @BenFrantzDale, we have a deprecation policy based on the VFX Reference Platform (https://github.com/AcademySoftwareFoundation/openvdb/blob/master/tsc/process/deprecation.md) which means we will be officially supporting a minimum version of C++17 with the release of OpenVDB 10.0 scheduled for Q4 2022. However, @Idclip has been working on an alternative for boost::any based on using openvdb::MetaMap which you can see here #744. We've been focusing on some other improvements related to dependencies, but hopefully we can pick this up again and remove boost::any soon. |
That all makes sense. No hurry at all, I just noticed it as I'm preparing to upgrade various libraries and was wondering why my project needed |
Thanks, a big focus of ours at the moment is to simplify and eliminate dependencies wherever we can! |
@danrbailey: Would it be possible to do something like this?
This way, you could cut down on the Boost dependency with a fairly minimal change. Naturally, if the other solution (removing |
@petamas - thanks for sharing. Yes, this is an option. We tend not to introduce new C++ features like this until it becomes our minimum version just to try and reduce the number of variables we have to test and support, but in certain cases it might be worthwhile. In this case, I think focusing on a solution that will work for everyone regardless of the C++ version would be preferable until we get access to C++17 features. |
Is your feature request related to a problem? Please describe.
I noticed openvdb uses
boost::any
whenstd::any
will work in its place, I think.Describe the solution you'd like
I see
boost/any.hpp
included in justio.h
andboost::any
appears on 13 lines including one comment.Describe alternatives you've considered
Could leave it as is, but I think
will be a drop-in fix.
The text was updated successfully, but these errors were encountered: