1. Patrick Mézard
  2. libphonenumber-csharp

Commits

phil...@gmail.com@ee073f10-1060-11df-b6a4-87a95322a99c  committed 917ddc1

CPP: Fix compilation error on Clang. Patch contributed by KushalP.

  • Participants
  • Parent commits 770d413
  • Branches default

Comments (0)

Files changed (1)

File cpp/test/phonenumbers/unicodestring_test.cc

View file
  • Ignore whitespace
 
 using std::ostream;
 
+namespace i18n {
+namespace phonenumbers {
+
 // Used by GTest to print the expected and actual results in case of failure.
-ostream& operator<<(ostream& out, const i18n::phonenumbers::UnicodeString& s) {
+ostream& operator<<(ostream& out, const UnicodeString& s) {
   string utf8;
   s.toUTF8String(utf8);
   out << utf8;
   return out;
 }
 
-namespace i18n {
-namespace phonenumbers {
-
 TEST(UnicodeString, ToUTF8StringWithEmptyString) {
   UnicodeString s;
   string utf8;