I'm using Clang 3.4.2. Whilst looking at a solution provided here:
Shared memory Vectors in boost with
The line:
typedef basic_string<char, std::char_traits<char>, salloc::rebind<char> other> shared_string;
gives me the error:
error: use 'template' keyword to treat 'rebind' as a dependent template name
typedef basic_string<char, std::char_traits<char>, salloc::rebind<char> other> shared_string;
I tried:
typedef basic_string<char, std::char_traits<char>, salloc::template rebind<char> other> shared_string;
and even:
typedef basic_string<char, std::char_traits<char>, template salloc::rebind<char> other> shared_string;
but I still get the error.
Could someone please help correct me in my ways?
Aucun commentaire:
Enregistrer un commentaire