Commit d26c3459 authored by neverlord's avatar neverlord

fixed namespace warning

parent 4f3e13d6
...@@ -31,7 +31,9 @@ ...@@ -31,7 +31,9 @@
#ifndef ATOM_VAL_HPP #ifndef ATOM_VAL_HPP
#define ATOM_VAL_HPP #define ATOM_VAL_HPP
namespace cppa { namespace detail { namespace { namespace cppa { namespace detail {
namespace {
// encodes ASCII characters to 6bit encoding // encodes ASCII characters to 6bit encoding
constexpr char encoding_table[] = { constexpr char encoding_table[] = {
...@@ -51,6 +53,8 @@ constexpr char decoding_table[] = " 0123456789" ...@@ -51,6 +53,8 @@ constexpr char decoding_table[] = " 0123456789"
"ABCDEFGHIJKLMNOPQRSTUVWXYZ_" "ABCDEFGHIJKLMNOPQRSTUVWXYZ_"
"abcdefghijklmnopqrstuvwxyz"; "abcdefghijklmnopqrstuvwxyz";
} // namespace <anonymous>
constexpr std::uint64_t next_interim(std::uint64_t current, size_t char_code) { constexpr std::uint64_t next_interim(std::uint64_t current, size_t char_code) {
return (current << 6) | encoding_table[(char_code <= 0x7F) ? char_code : 0]; return (current << 6) | encoding_table[(char_code <= 0x7F) ? char_code : 0];
} }
...@@ -62,6 +66,6 @@ constexpr std::uint64_t atom_val(char const* cstr, std::uint64_t interim = 0) { ...@@ -62,6 +66,6 @@ constexpr std::uint64_t atom_val(char const* cstr, std::uint64_t interim = 0) {
static_cast<size_t>(*cstr))); static_cast<size_t>(*cstr)));
} }
} } } // namespace cppa::detail::<anonymous> } } // namespace cppa::detail
#endif // ATOM_VAL_HPP #endif // ATOM_VAL_HPP
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment