]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#3319] recover C++14 namespace syntax
authorPiotrek Zadroga <piotrek@isc.org>
Wed, 17 Apr 2024 08:05:34 +0000 (10:05 +0200)
committerPiotrek Zadroga <piotrek@isc.org>
Wed, 17 Apr 2024 18:02:57 +0000 (18:02 +0000)
src/lib/util/buffer.h
src/lib/util/str.h

index 7953d9d2852cf596a36487cf8fcdda8b9facd9aa..b438454e92c56850b7308778a84d6f06d26ee0a9 100644 (file)
@@ -16,7 +16,8 @@
 
 #include <boost/shared_ptr.hpp>
 
-namespace isc::util {
+namespace isc {
+namespace util {
 
 /// @brief The @c InputBuffer class is a buffer abstraction for manipulating read-only data.
 ///
@@ -569,6 +570,7 @@ private:
 /// @brief Type of pointers to output buffers.
 typedef boost::shared_ptr<OutputBuffer> OutputBufferPtr;
 
-}  // namespace isc::util
+}  // namespace util
+}  // namespace isc
 
 #endif  // BUFFER_H
index 0db54e4c80324b9fbbfd6ed7acf10d18fbcd3187..bd5587d717a28dcebc6324fe74c7ec31edcb60c4 100644 (file)
@@ -19,7 +19,9 @@
 
 #include <boost/lexical_cast.hpp>
 
-namespace isc::util::str {
+namespace isc {
+namespace util {
+namespace str {
 
 /// @brief A Set of C++ Utilities for Manipulating Strings
 
@@ -64,6 +66,7 @@ seekTrimmed(Iterator const& begin, Iterator end, uint8_t const trim_val) {
     while (end != begin && *(end - 1) == trim_val) {
         --end;
     }
+
     return (end);
 }
 
@@ -283,6 +286,8 @@ isPrintable(const std::vector<uint8_t>& content);
 std::string
 dumpAsHex(const uint8_t* data, size_t length);
 
-}  // namespace isc::util::str
+}  // namespace str
+}  // namespace util
+}  // namespace isc
 
 #endif  // KEA_UTIL_STR_H