1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-12-22 05:34:30 +00:00

Hadrons: namespace std not used anymore in compiled sources

This commit is contained in:
2015-12-23 14:30:33 +00:00
parent 76c78f04e2
commit 54eacec261
8 changed files with 41 additions and 46 deletions

View File

@@ -19,7 +19,6 @@
#include <Hadrons/ModuleFactory.hpp>
using namespace std;
using namespace Grid;
using namespace Hadrons;
@@ -52,8 +51,8 @@ std::vector<std::string> ModuleFactory::getModuleList(void) const
}
// factory /////////////////////////////////////////////////////////////////////
unique_ptr<Module> ModuleFactory::create(const string &type,
const string &name) const
std::unique_ptr<Module> ModuleFactory::create(const std::string &type,
const std::string &name) const
{
FactoryFunc func;
@@ -61,7 +60,7 @@ unique_ptr<Module> ModuleFactory::create(const string &type,
{
func = factory_.at(type);
}
catch (out_of_range)
catch (std::out_of_range)
{
HADRON_ERROR("module type '" + type + "' unknown");
}