#include <iostream>

void launch_nukes() {
    std::cout << "Boom!" << std::endl;
}

class SideEffects {
    int x;
  public:
    SideEffects(int x_ = 0) : x(x_) {}

    operator int() {
        launch_nukes();
        return x;
    }
};

int main() {
    SideEffects variable(5);
    
    int x = variable;
}