summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPiotrek Zadroga <piotrek@isc.org>2024-04-17 10:05:34 +0200
committerPiotrek Zadroga <piotrek@isc.org>2024-04-17 20:02:57 +0200
commit840486e20666dbc652d0c59d671b9e8104f90b03 (patch)
tree6b263e8e56924bae82094c42302607406d059b69
parent[#3319] lib util recover new lines (diff)
downloadkea-840486e20666dbc652d0c59d671b9e8104f90b03.tar.xz
kea-840486e20666dbc652d0c59d671b9e8104f90b03.zip
[#3319] recover C++14 namespace syntax
-rw-r--r--src/lib/util/buffer.h6
-rw-r--r--src/lib/util/str.h9
2 files changed, 11 insertions, 4 deletions
diff --git a/src/lib/util/buffer.h b/src/lib/util/buffer.h
index 7953d9d285..b438454e92 100644
--- a/src/lib/util/buffer.h
+++ b/src/lib/util/buffer.h
@@ -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
diff --git a/src/lib/util/str.h b/src/lib/util/str.h
index 0db54e4c80..bd5587d717 100644
--- a/src/lib/util/str.h
+++ b/src/lib/util/str.h
@@ -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