15 lines
115 B
C++
15 lines
115 B
C++
|
|
||
|
class Foo
|
||
|
{
|
||
|
public:
|
||
|
Foo(int i);
|
||
|
|
||
|
Foo(double d)
|
||
|
: Foo(static_cast<int>(d))
|
||
|
{
|
||
|
}
|
||
|
|
||
|
private:
|
||
|
int m_i;
|
||
|
};
|