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() {}
}