vendredi 14 octobre 2022

Type Alias variable outside the template class in C++11 [duplicate]

namespace X
{
template <typename T>
clase A
{
public:
   using value = T;
   using pointer = T*;

   pointer member_fun();
private:
   value x{};

};
}

How to access the alias varaibles outside this template class in C++11? Is it like

template <typename T>
X::A<T>::value X::A<T>::member_fun(){

I am getting error here

Aucun commentaire:

Enregistrer un commentaire