错误:‘bOS::SQL::SQLCommand::SQLOperation’既不是类也不是命名空间


/opt/cBPM/criteria-lin/src/Criteria/Criteria.WorkflowEngine/DataBase/DataBaseTemplate.cpp:1341:66: 错误:‘bOS::SQL::SQLCommand::SQLOperation’既不是类也不是命名空间
  this->executeSQLCommands (connection, &vActivities, SQLCommand::SQLOperation::SELECT, NULL, false);

namespace bOS
{
	namespace SQL
	{
		class BOS_API SQLCommand
		{
		public:
			SQLCommand();
			virtual ~SQLCommand();

			enum SQLOperation
			{
				ADD,
				MODIFY,
				ERASE,
				SELECT,
				CREATE,
				DROP
			};

解决办法:

SQLCommand::SQLOperation::SELECT

替换为:

SQLCommand::SELECT



Getting an “enum is not a class or namespace” error - C++ [duplicate]






posted @ 2016-04-06 14:27  张同光  阅读(166)  评论(0编辑  收藏  举报