
4 May
2012
4 May
'12
5:56 a.m.
Le 03/05/12 00:01, Eric Niebler a écrit :
Say I'm rewriting an existing Boost library and targeting C++11 users. I plan to ship C++03 and C++11 versions of my library side-by-side, so back-compat isn't an issue for the new code. Good idea. I think that is the way to go that allows a good refactoring taking in account the best of C++11.
Is there a reason to prefer using Boost's versions of utilities like enable_if, type traits, integral constant wrappers (e.g. mpl::int_), tuples, etc., over the now-standard ones? I don't see any if the standard provides you whatever you need. I'm leaning toward using std:: where I can, and falling back on Boost's versions only when there is a compelling reason.
This seems reasonable. Best, Vicente