Hi,
I want to have two definitions for createRawVector and one is to exist only when the parameter is an rvalue reference. I can test for T but how can I test for the parameter x?
I am assuming that the createRawVector(...) will only be called if the other overload is not available.
Any ideas?
Thanks,
Juan
struct X {
template<typename T>
std::enable_if_t<std::is_rvalue_reference<decltype(x)>::value>
createRawVector(T&& x)
{
T* p2 = new T {};
}