Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
Actor Framework
Commits
d26c3459
Commit
d26c3459
authored
Jun 05, 2012
by
neverlord
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed namespace warning
parent
4f3e13d6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
cppa/detail/atom_val.hpp
cppa/detail/atom_val.hpp
+6
-2
No files found.
cppa/detail/atom_val.hpp
View file @
d26c3459
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment