fork download
	#include 
	using namespace std;

	struct BreakConst
	{
		int v;
		int *p;
		BreakConst() { v = 0; p = &v; } 
		void break_stuff() const { ++*p; }
	};
	void f(const BreakConst& bc) {
		bc.break_stuff();
	}

	int main()
	{
		BreakConst bc;
		cout << bc.v << endl;   // 0
		f(bc);                  // O:)
		cout << bc.v << endl;   // 1

		return 0;
	}
Success #stdin #stdout 0.02s 2680KB
stdin
Standard input is empty
stdout
0
1