int main(int argc, char* argv[]) { if (auto f = CreateFoo(argc)) { cout << "Foo made with value " << f.val; } else { cout << "Foo not made"; } }