Function overloading depending on compile-time object state Consider having a simple class, that writes integers to cout depending on its state: