code style: Don't use std:: inside .cpp files.
diff --git a/ndn-cpp/encoding/binary-xml-decoder.hpp b/ndn-cpp/encoding/binary-xml-decoder.hpp
index 3e371c3..e7583e5 100644
--- a/ndn-cpp/encoding/binary-xml-decoder.hpp
+++ b/ndn-cpp/encoding/binary-xml-decoder.hpp
@@ -12,8 +12,9 @@
#include "../c/errors.h"
#include "../c/encoding/binary-xml-decoder.h"
-namespace ndn {
+using namespace std;
+namespace ndn {
/**
* A BinaryXmlDecoder extends a C ndn_BinaryXmlDecoder struct and wraps related functions.
@@ -40,7 +41,7 @@
int gotExpectedTag;
ndn_Error error;
if ((error = ndn_BinaryXmlDecoder_peekDTag(this, expectedTag, &gotExpectedTag)))
- throw std::runtime_error(ndn_getErrorString(error));
+ throw runtime_error(ndn_getErrorString(error));
return gotExpectedTag;
}