From a33cc44360f9f562f5728edf8650fa0d0e981dfa Mon Sep 17 00:00:00 2001 From: Andrews Sobral <andrewssobral@gmail.com> Date: Sun, 10 Mar 2019 20:50:02 +0100 Subject: [PATCH] Fixed extra qualification error --- CMakeLists.txt | 2 +- package_bgs/IBGS.h | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 17e6dde..32061f4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -30,7 +30,7 @@ if (POLICY CMP0042) cmake_policy(SET CMP0042 NEW) endif() -set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99") +#set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99") #set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake-modules) # compilation mode setup diff --git a/package_bgs/IBGS.h b/package_bgs/IBGS.h index eb9858d..67a0568 100644 --- a/package_bgs/IBGS.h +++ b/package_bgs/IBGS.h @@ -88,13 +88,13 @@ namespace bgslibrary class BGS_Factory { public: - static BGS_Factory* BGS_Factory::Instance() + static BGS_Factory* Instance() { static BGS_Factory factory; return &factory; } - std::shared_ptr<IBGS> BGS_Factory::Create(std::string name) + std::shared_ptr<IBGS> Create(std::string name) { IBGS* instance = nullptr; @@ -110,7 +110,7 @@ namespace bgslibrary return nullptr; } - std::vector<std::string> BGS_Factory::GetRegisteredAlgorithmsName() + std::vector<std::string> GetRegisteredAlgorithmsName() { std::vector<std::string> algorithmsName; for (auto it = factoryFunctionRegistry.begin(); it != factoryFunctionRegistry.end(); ++it) { @@ -119,7 +119,7 @@ namespace bgslibrary return algorithmsName; } - void BGS_Factory::RegisterFactoryFunction(std::string name, + void RegisterFactoryFunction(std::string name, std::function<IBGS*(void)> classFactoryFunction) { // register the class factory function -- GitLab