template parameter F is incompatible with the declaration...
Feb 15, 2017 at 8:59pm UTC
Hi,
I have this code:
1 2 3 4 5 6 7
template <typename F, typename ... Args>
struct apply : lambda<F>::type::template apply<Args...>
{};
template <template <typename > typename F, typename ... Args>
struct apply : lambda<F<_1>>::type::template apply<Args...>
{};
where the intent is to specialize partially the first primary template apply. The code that calls this is something like:
typedef typename apply<std::add_pointer<_1>, long >::type one_pointer;
But I get
template parameter F is incompatible with the declaration...
What is going on?
Thanks,
Juan Dent
Feb 15, 2017 at 9:07pm UTC
Last edited on Feb 15, 2017 at 9:09pm UTC
Topic archived. No new replies allowed.