"generators\_ = {};" causes the compiler error: "error: chosen constructor is explicit in copy-initialization"
Issue generated from Tuleap's migration script. Originally submitted by: Yuri (yurivict)
Getting these errors with clang-3.6.2 on FreeBSD.
I don't think this is required to initialize the map with an empty map.
In file included from callmanager.cpp:34:
In file included from /wrkdirs/usr/ports/net-im/ring-daemon/work/ring-daemon-56ec56f/src/manager.h:45:
/wrkdirs/usr/ports/net-im/ring-daemon/work/ring-daemon-56ec56f/src/account\_factory.h:121:107: error: chosen constructor is explicit in copy-initialization
std::map<std::string, std::function<std::shared\_ptr<Account>(const std::string&)> > generators\_ = {};
\^\~
/usr/include/c++/v1/map:838:14: note: constructor declared here
explicit map(const key\_compare& \_\_comp = key\_compare())
\^
In file included from callmanager.cpp:34:
In file included from /wrkdirs/usr/ports/net-im/ring-daemon/work/ring-daemon-56ec56f/src/manager.h:45:
/wrkdirs/usr/ports/net-im/ring-daemon/work/ring-daemon-56ec56f/src/account\_factory.h:122:68: error: chosen constructor is explicit in copy-initialization
std::map<std::string, AccountMap<Account> > accountMaps\_ = {};