cannot declare have static linkage

cannot declare member function static void Foo::Bar(std::ostream&, const Foo::Node*) to have static linkage



I'm guessing you've done something like:

class Foo
{
    static void Bar();
};

...

static void Foo::Bar()
{
    ...
}

This is incorrect. You don't need the second "static".

你可能感兴趣的:(cannot declare have static linkage)