[mapguide-commits] r5756 -
trunk/MgDev/Oem/dbxml/dbxml/src/utils/shell
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Thu May 5 06:19:50 EDT 2011
Author: christinebao
Date: 2011-05-05 03:19:50 -0700 (Thu, 05 May 2011)
New Revision: 5756
Modified:
trunk/MgDev/Oem/dbxml/dbxml/src/utils/shell/DebugCommand.cpp
Log:
Fix error C2252: an explicit instantiation of a template can only occur at namespace scope
Modified: trunk/MgDev/Oem/dbxml/dbxml/src/utils/shell/DebugCommand.cpp
===================================================================
--- trunk/MgDev/Oem/dbxml/dbxml/src/utils/shell/DebugCommand.cpp 2011-05-05 09:56:18 UTC (rev 5755)
+++ trunk/MgDev/Oem/dbxml/dbxml/src/utils/shell/DebugCommand.cpp 2011-05-05 10:19:50 UTC (rev 5756)
@@ -16,6 +16,10 @@
using namespace DbXml;
using namespace std;
+#if defined(_MSC_VER) && (_MSC_VER >= 1300)
+ template class __declspec(dllexport) AutoReset<const XmlStackFrame *>;
+#endif
+
string DbXml::DebugCommand::getCommandName() const
{
return "debug";
@@ -94,10 +98,8 @@
}
private:
-#if defined(_MSC_VER) && (_MSC_VER >= 1300)
- template class __declspec(dllexport) AutoReset<const XmlStackFrame *>;
-#endif
+
virtual void enter(const XmlStackFrame *stack)
{
AutoReset<const XmlStackFrame *> reset(stack_);
More information about the mapguide-commits
mailing list