#ifndef SLICE_AH__ #define SLICE_AH__ #include slice class Test_Slice { int i; public: Test_Slice(int i) : i(i) { } void print() const { printf("i is %d\n", i); } }; #endif // SLICE_AH__