Currently programming a specialized Standard Library, and I find that in a particular case this is necessary for me:
namespace std
{
// key, value
template<class K, class V>
using vector_map = other_namespace::vector_map<K, V>;
// key, value, compare
template<class K, class V, class C>
using vector_map = other_namespace::vector_map<K, V, C>;
}
It does, however, not work. Not surprising. But what are my options to achieving this? I have thought about using the precprocessor, but I want to know what you guys think.
I want to be able to selective alias template class into another namespace, if possible.
Solution (in my case) was to add a default value instead of having several usings:
namespace std
{
// key, value, compare
template<class K, class V, class C = default_value>
using vector_map = other_namespace::vector_map<K, V, C>;
}