Re: [protobuf] c++ singleton support

2016-12-09 Thread
, Dec 3, 2016 at 9:13 PM 梅骁 <mxmx...@gmail.com > wrote: > >> Hi, >> Does protobuf has singleton support? I want to use it for global >> configurations of my program. >> For example, if I have a message type "GlobalSetting", then I want to >

[protobuf] c++ singleton support

2016-12-03 Thread
Hi, Does protobuf has singleton support? I want to use it for global configurations of my program. For example, if I have a message type "GlobalSetting", then I want to use the class like: GlobalSetting::Instance().get_someVarible.