Use nested namespace

It's a mechanical change to modernize the code base
This commit is contained in:
Dennis Luxen
2022-12-11 10:10:26 +01:00
parent 152a52bc1a
commit a4aa153ba4
456 changed files with 469 additions and 2474 deletions
+1 -4
View File
@@ -7,9 +7,7 @@
#include <ostream>
namespace osrm
{
namespace engine
namespace osrm::engine
{
namespace api
{
@@ -60,7 +58,6 @@ inline std::ostream &operator<<(std::ostream &out, Approach approach)
out << static_cast<int>(approach);
return out;
}
} // namespace engine
} // namespace osrm
#endif
+1 -7
View File
@@ -3,11 +3,7 @@
#include <fstream>
// needed for BOOST_CHECK_EQUAL
namespace osrm
{
namespace server
{
namespace api
namespace osrm::server::api
{
std::ostream &operator<<(std::ostream &out, const osrm::server::api::ParsedURL &url)
{
@@ -15,8 +11,6 @@ std::ostream &operator<<(std::ostream &out, const osrm::server::api::ParsedURL &
return out;
}
} // namespace api
} // namespace server
} // namespace osrm
#include <boost/test/test_tools.hpp>