Get rid of all the using namespace and using boost:: declarations in Thrift header files
Summary: To remove upstream dependencies. Still keeping some specific using directives around.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665047 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/cpp/src/TProcessor.h b/lib/cpp/src/TProcessor.h
index efda034..affbe81 100644
--- a/lib/cpp/src/TProcessor.h
+++ b/lib/cpp/src/TProcessor.h
@@ -13,10 +13,6 @@
namespace facebook { namespace thrift {
-using namespace boost;
-
-using namespace facebook::thrift::protocol;
-
/**
* A processor is a generic object that acts upon two streams of data, one
* an input and the other an output. The definition of this object is loose,
@@ -29,10 +25,10 @@
public:
virtual ~TProcessor() {}
- virtual bool process(shared_ptr<TProtocol> in,
- shared_ptr<TProtocol> out) = 0;
+ virtual bool process(boost::shared_ptr<protocol::TProtocol> in,
+ boost::shared_ptr<protocol::TProtocol> out) = 0;
- bool process(shared_ptr<TProtocol> io) {
+ bool process(boost::shared_ptr<facebook::thrift::protocol::TProtocol> io) {
return process(io, io);
}