M
Marcin Vorbrodt
Here is an example of my code:
//Header file
#include <vector>
using std::vector;
namespace Revelation {
// class definitions, etc...
// class members are of type std::vector
}
//Source File
#include <header_file>
namespace Revelation {
// stuff that used std::vector here;
}
Now my question is: where should I put the #include<vector>, and where
should I put using std::vector ??? Both outside of my namespace? Include
outside and "using" inside? Both inside?
Thanks,
Martin
//Header file
#include <vector>
using std::vector;
namespace Revelation {
// class definitions, etc...
// class members are of type std::vector
}
//Source File
#include <header_file>
namespace Revelation {
// stuff that used std::vector here;
}
Now my question is: where should I put the #include<vector>, and where
should I put using std::vector ??? Both outside of my namespace? Include
outside and "using" inside? Both inside?
Thanks,
Martin