1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
#include <iostream> class Hoge { public: Hoge(void) { std::cout << "Hoge::Hoge(void)" << std::endl; } Hoge(const Hoge &) { std::cout << "Hoge::Hoge(const Hoge &)" << std::endl; } }; int main(void) { Hoge h = Hoge(); return 0; }
1 2
Hoge::Hoge(void) Hoge::Hoge(const Hoge &)