diff options
author | randomdan <randomdan@localhost> | 2014-01-04 18:52:36 +0000 |
---|---|---|
committer | randomdan <randomdan@localhost> | 2014-01-04 18:52:36 +0000 |
commit | 7a56f5b704c1cda5a2774f737ede3c6627ab2c38 (patch) | |
tree | 33268bd0b09e649e66f52cd7b8df2694b5881a65 /project2/cgi | |
parent | Tidy up the code for adding a help option (diff) | |
download | project2-7a56f5b704c1cda5a2774f737ede3c6627ab2c38.tar.bz2 project2-7a56f5b704c1cda5a2774f737ede3c6627ab2c38.tar.xz project2-7a56f5b704c1cda5a2774f737ede3c6627ab2c38.zip |
Explicit instantiations of instance store/map/set to avoid multiple instantiatation in different compilation units
Diffstat (limited to 'project2/cgi')
-rw-r--r-- | project2/cgi/cgiOutputOptions.cpp | 2 | ||||
-rw-r--r-- | project2/cgi/cgiRouter.cpp | 5 | ||||
-rw-r--r-- | project2/cgi/testCgi.cpp | 1 |
3 files changed, 8 insertions, 0 deletions
diff --git a/project2/cgi/cgiOutputOptions.cpp b/project2/cgi/cgiOutputOptions.cpp index 55e1de4..de3d291 100644 --- a/project2/cgi/cgiOutputOptions.cpp +++ b/project2/cgi/cgiOutputOptions.cpp @@ -1,5 +1,6 @@ #include "cgiOutputOptions.h" #include "scripts.h" +#include "instanceStore.impl.h" bool OutputOptions::core; bool OutputOptions::session; @@ -36,4 +37,5 @@ OutputOptionsLoader::create(ScriptNodePtr e) const { } DECLARE_CUSTOM_COMPONENT_LOADER("outputoptions", OutputOptions, OutputOptionsLoader, OutputOptionsLoader) +INSTANTIATESTORE(std::string, OutputOptionsLoader); diff --git a/project2/cgi/cgiRouter.cpp b/project2/cgi/cgiRouter.cpp new file mode 100644 index 0000000..dc77c40 --- /dev/null +++ b/project2/cgi/cgiRouter.cpp @@ -0,0 +1,5 @@ +#include "cgiRouter.h" +#include "instanceStore.impl.h" + +INSTANTIATESTORE(std::string, RouterLoader); + diff --git a/project2/cgi/testCgi.cpp b/project2/cgi/testCgi.cpp index 58b823f..80c3f01 100644 --- a/project2/cgi/testCgi.cpp +++ b/project2/cgi/testCgi.cpp @@ -1,5 +1,6 @@ #include <iostream> #include <boost/bind.hpp> +#include <boost/foreach.hpp> #include <map> #include "options.h" #include "safeMapFind.h" |