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
ba8bcb65
Commit
ba8bcb65
authored
Nov 21, 2014
by
Joseph Noir
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add simple to_string for RIOT cross compiling
parent
9f495bc1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
libcaf_core/caf/config.hpp
libcaf_core/caf/config.hpp
+14
-0
No files found.
libcaf_core/caf/config.hpp
View file @
ba8bcb65
...
...
@@ -189,4 +189,18 @@
printf("%s:%u: critical error: '%s'\n", __FILE__, __LINE__, error); \
abort()
// arm cross compilers don't offer to_string
#ifdef __RIOTBUILD_FLAG
#include <string>
#include <sstream>
namespace
std
{
template
<
class
T
>
std
::
string
to_string
(
T
value
)
{
std
::
stringstream
ss
;
ss
<<
value
;
return
ss
.
str
();
}
}
// namespace caf
#endif
#endif // CAF_CONFIG_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