Jump to content

  • Log In with Google      Sign In   
  • Create Account


#Actualwqking

Posted 06 October 2012 - 11:34 PM

I think you missed typename before ContainerType::value_type

template <class ContainerType>

void MyFunc(ContainerType &container, typename ContainerType::value_type fallback = typename ContainerType::value_type())


#4wqking

Posted 06 October 2012 - 11:33 PM

I think you missed typename before ContainerType::value_type

template <class ContainerType>

void MyFunc(ContainerType &container, typename ContainerType::value_type fallback = typename ContainerType::value_type())



PS: Why "class ContainerType" is missed from this page if I use angle brackets? Now I use quote marks instead.

#3wqking

Posted 06 October 2012 - 11:33 PM

I think you missed typename before ContainerType::value_type
[source lang="cpp"]template "class ContainerType"void MyFunc(ContainerType &container, typename ContainerType::value_type fallback = typename ContainerType::value_type())[/source]

PS: Why "class ContainerType" is missed from this page if I use angle brackets? Now I use quote marks instead.

#2wqking

Posted 06 October 2012 - 11:31 PM

I think you missed typename before ContainerType::value_type
[source lang="cpp"]template <class ContainerType>void MyFunc(ContainerType &container, typename ContainerType::value_type fallback = typename ContainerType::value_type())[/source]

#1wqking

Posted 06 October 2012 - 11:30 PM

I think you missed typename before ContainerType::value_type
[source lang="cpp"]template<class ContainerType>void MyFunc(ContainerType &container, typename ContainerType::value_type fallback = typename ContainerType::value_type())[/source]

PARTNERS