using declaration does not seem to work with enum type
class Sample{
public:
enum Colour { RED,BLUE,GREEN};
}
using Sample::Colour;
does not work!!
do we need to add using declaration for every enumerators of enum type? like below
using sample::Colour::RED;
...
I am trying to use google protobuf and they have the following example:
using google::protobuf;
protobuf::RpcChannel* channel;
protobuf::RpcController* controller;
SearchService* service;
SearchRequest request;
SearchResponse response;
void DoSearch() {
// You provide classes MyRpcChannel and MyRpcController, which implement
// th...