CMake/Tests/CompileFeatures/cxx_delegating_constructors...

16 lines
116 B
C++
Raw Normal View History

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