I took a break from programming for a while, but I'm back at it, and lo and behold, I've run into trouble. Someone clever tell me whats wrong with me:
class world
{
private:
ID IDcounter;
std::map<ID, boost::shared_ptr<spacething> > IDmap;
public:
ID getID(boost::shared_ptr<spacething>);
boost::shared_ptr<spacething> getSpacethingPtr(ID id);
void instantiateSpacething(boost::shared_ptr<spacething> initiate);
void addSpacething;//(boost::share_ptr<spacething> other);
void update(){}
world();
~world();
};
Executing make...
make.exe -f "C:\Documents and Settings\Owner\Desktop\clank\Makefile.win" all
g++.exe -D__DEBUG__ -c clank.cpp -o clank.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"C:/Dev-Cpp/include/c++/3.4.2/backward" -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"C:/Dev-Cpp/include/c++/3.4.2" -I"C:/Dev-Cpp/include" -I"C:/clank/include" -ggdb -pg -g3
In file included from spacething.h:10,
from frobnitz.h:4,
from clank.cpp:8:
world.h:21: error: variable or field `addSpacething' declared void
make.exe: *** [clank.o] Error 1
Execution terminated