also enable ds::log facility in unit tests
Signed-off-by: andreas.fenkart andreas.fenkart@dev.digitalstrom.org
Activity
79 79 std::string m_newSessionToken; 80 80 bool m_revokeCookie; 81 81 }; 82 std::ostream& operator<<(std::ostream& stream, const WebServerResponse& response); Move as friend into
SebServerResponse
class? SeeIResourceBase::operator <<
insrc/ds/asio/resource.h
?The main advantage is that the the
friend operator <<
does not appear in the overload set unless the argument isWebServerResponse
. Slightly decreasing compilation time,d making the error messages for non-matchedoperator <<
smaller, blocking implicit conversions through WebServerResponse when used withoperator <<
.It is darker corner of C++ and somewhat against most books. I learned about it recently because it was used in bug fix for std::filesystem::path: https://cplusplus.github.io/LWG/issue2989
changed this line in version 2 of the diff
added 1 commit
- e588c728 - webrequests: make ostream hidden friend of webrequests
mentioned in commit 6f8d5d47