有没有办法在编译时检查某些类是否具有某些参数的构造函数??
例如:
class foo { foo(std::string &s) { } };
我想在编译时检查构造函数与std :: string并始终定义.也许boost提供了这样的功能?
c++ boost
boost ×1
c++ ×1