Importing header?
Let say I have a template class:
template<typename T> class MemoryPool
The source files are:
MemoryPool.h:
http://audinue.navhost.com/MemoryPool.cpp
and
MemoryPool.cpp:
http://audinue.navhost.com/MemoryPool.h
And I want to include the class into my main code
Main.cpp using
#include "MemoryPool.h"
How I can do this?
Should I add
#include "MemoryPool.cpp"
into
MemoryPool.h? (I think this is not an elegant way...)
Should I compile it into static/dynamic library? How to import the library if I do this?
Thanks in advance ^_^
Thanks anilpanicker :)
Topic archived. No new replies allowed.