alright, I'm a bit stuck here, I've tried a few things but I can't figure it out.

Question is in the source:

// test.h
namespace test
{
  class foo
  {
    static void test();
  };
}
// test.cpp
#include "test.h"
namespace test
{
  // how can I define test() without getting without getting compiler errors?
}

figured it out, I was being so stupid, I forgot to include the header >_<

anyway, for those interested:

// test.cpp
#include "test.h"
namespace test
{
  void foo::test() {}
}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.