#include <memory>
template<typename alloc, typename T>
using Rebind =typename alloc::rebind<T>::other;
int main()
{
Rebind<std::allocator<int>, double> double_Allocator;
}
I'm getting this error
4:37: error: expected ';' before '<' token
4:37: error: expected unqualified-id before '<' token
In substitution of 'template<class alloc, class T> using Rebind = typename alloc::rebind [with alloc = std::allocator<int>; T = double]':
8:39: required from here
4:37: error: 'typename std::allocator<int>::rebind' names 'template<class _Tp1> struct std::allocator<int>::rebind', which is not a type
In function 'int main()':
8:57: error: invalid type in declaration before ';' token