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

Hadrons: namespace reorganisation, now everything is in Grid::Hadrons, the 'using Grid::operator<<' statement is used to prevent a very nasty compilation error with GCC.

This commit is contained in:
2016-05-02 19:31:21 -07:00
parent 48fcc34d72
commit 6e83b6a203
13 changed files with 26 additions and 9 deletions

View File

@@ -47,7 +47,7 @@ public:
virtual ~Factory(void) = default;
// registration
void registerBuilder(const std::string type, const Func &f);
// get module list
// get builder list
std::vector<std::string> getBuilderList(void) const;
// factory
std::unique_ptr<T> create(const std::string type,
@@ -91,7 +91,7 @@ std::unique_ptr<T> Factory<T>::create(const std::string type,
{
func = builder_.at(type);
}
catch (std::out_of_range)
catch (std::out_of_range &)
{
HADRON_ERROR("object of type '" + type + "' unknown");
}