Whenever a class defines a single-arg templated constructor, there is danger to shadow the auto-generated copy operations, leading to insidious failures. Some months ago, I did the ''obvious'' and added a tiny helper, allowing to mask out the dangerous case when the ''single argument'' is actually the class itself (meaning, it is a copy invocation and not meant to go through this templated ctor... As this already turned out as tremendously helpful, I now extended this helper to also cover cases where the problematic constructor accepts variadic arguments, which is quite common with builder-helpers |
||
|---|---|---|
| .. | ||
| gear | ||
| mem | ||
| common.hpp | ||
| DIR_INFO | ||
| enginefacade.cpp | ||
| enginefacade.hpp | ||
| media-access-facade.cpp | ||
| media-access-facade.hpp | ||
| netnodefacade.cpp | ||
| netnodefacade.hpp | ||
| real-clock.cpp | ||
| real-clock.hpp | ||
| scriptrunnerfacade.cpp | ||
| scriptrunnerfacade.hpp | ||