Update singleton_pattern.cpp

changed constructor declaration