diff --git a/cpp/CmdLineOptions.cpp b/cpp/CmdLineOptions.cpp index 5deb192..0920c96 100644 --- a/cpp/CmdLineOptions.cpp +++ b/cpp/CmdLineOptions.cpp @@ -10,6 +10,32 @@ namespace cmdlineoptions { CmdLineOptions::~CmdLineOptions() {} + +const std::unique_ptr &CmdLineOptions::i() { + if (!instance) { + instance = std::unique_ptr(new CmdLineOptions()); + } + return instance; +} + +std::shared_ptr