using-declarative

using declaration with enum?

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; ...

C++ "using" declaration in Visual Studio 2008

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...