On 24/07/2017 06:15, Vinnie Falco wrote:
I like it too but let me propose an alternative sure to displease everyone:
In addition to mp11::mp_*, the library can provide a set of alternate aliases in the namespace mp11::alternatives::. For example mp11::alternatives::transform, or mp11::alternatives::if_
People who feel strongly about names similar to MPL or who despise the mp_ prefix can simply lift this alternate set of names into the namespace of their choosing. For example:
namespace mp = mp11::alternatives;
Lets you use mp::transform, mp::if_
Rather than try to guess at someone's preferences for alternate naming, you can just let them write their own header file that imports using whatever naming they like. (This used to be a bit of a pain in the butt for templates pre-C++11, but now it's a snap.)