CMake/Tests/CompileFeatures/cxx_delegating_constructors...

15 lines
115 B
C++

class Foo
{
public:
Foo(int i);
Foo(double d)
: Foo(static_cast<int>(d))
{
}
private:
int m_i;
};