Skip to content

One more compiler problem: template<typename _N, typename T> #55

@DominikMS

Description

@DominikMS

I can't compile your code in Android NDK, why? Look at this:

template<typename _N, typename T>
struct StateBinder
{
};

Throws error:

expected nested-name-specifier before numeric constant  main.cpp line 5 C/C++ Problem
expected '>' before numeric constant    main.cpp line 5 C/C++ Problem

But! This is working well:

template<typename N, typename T>
struct StateBinder
{
};

Difference? _ N changed to N (or to N_), why it happens?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions