From bb8a122b00c2ba3485a2dd81d0c611b498f77055 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 26 Sep 2015 19:51:31 +0100 Subject: Unambiguous create function name --- libadhocutil/factory.h | 2 +- libadhocutil/factory.impl.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libadhocutil/factory.h b/libadhocutil/factory.h index f1998a7..1765f50 100644 --- a/libadhocutil/factory.h +++ b/libadhocutil/factory.h @@ -46,7 +46,7 @@ namespace AdHoc { * @param name The name of the implementation. * @param p The parameters to pass to the constructor. */ - static Base * create(const std::string & name, const Params & ... p); + static Base * createNew(const std::string & name, const Params & ... p); }; } diff --git a/libadhocutil/factory.impl.h b/libadhocutil/factory.impl.h index c6d4719..bbba002 100644 --- a/libadhocutil/factory.impl.h +++ b/libadhocutil/factory.impl.h @@ -17,7 +17,7 @@ namespace AdHoc { template Base * - Factory::create(const std::string & name, const Params & ... p) + Factory::createNew(const std::string & name, const Params & ... p) { return get(name)->create(p...); } -- cgit v1.2.3