Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0ed3ca37 authored by Treehugger Robot's avatar Treehugger Robot Committed by android-build-merger
Browse files

Merge "libbinder: Remove templated binder::Status stream operator." am: 9e413e9f

am: 9ed41a7e

* commit '9ed41a7e':
  libbinder: Remove templated binder::Status stream operator.

Change-Id: I82704846becfdcc5e1d9dabf6c369648e8971ec0
parents 9a71474a 9ed41a7e
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@
#define ANDROID_BINDER_STATUS_H

#include <cstdint>
#include <sstream>

#include <binder/Parcel.h>
#include <utils/String8.h>
@@ -142,11 +143,7 @@ private:
};  // class Status

// For gtest output logging
template<typename T>
T& operator<< (T& stream, const Status& s) {
    stream << s.toString8().string();
    return stream;
}
std::stringstream& operator<< (std::stringstream& stream, const Status& s);

}  // namespace binder
}  // namespace android
+5 −0
Original line number Diff line number Diff line
@@ -158,5 +158,10 @@ String8 Status::toString8() const {
    return ret;
}

std::stringstream& operator<< (std::stringstream& stream, const Status& s) {
    stream << s.toString8().string();
    return stream;
}

}  // namespace binder
}  // namespace android