Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Matthias Mayr
limbo
Commits
092c1049
Commit
092c1049
authored
Dec 15, 2015
by
Konstantinos Chatzilygeroudis
Browse files
Removed boost::lexical_cast
parent
db1a0447
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/limbo/tools/sys.hpp
View file @
092c1049
...
...
@@ -39,8 +39,6 @@
#include
<unistd.h>
#include
<string>
#include
<boost/lexical_cast.hpp>
namespace
limbo
{
namespace
tools
{
inline
std
::
string
date
()
...
...
@@ -49,7 +47,7 @@ namespace limbo {
time_t
date_time
;
time
(
&
date_time
);
strftime
(
date
,
30
,
"%Y-%m-%d_%H_%M_%S"
,
localtime
(
&
date_time
));
return
date
;
return
std
::
string
(
date
)
;
}
inline
std
::
string
hostname
()
...
...
@@ -63,7 +61,7 @@ namespace limbo {
inline
std
::
string
getpid
()
{
return
boost
::
lexical_cast
<
std
::
string
>
(
::
getpid
());
return
std
::
to_
string
(
::
getpid
());
}
}
}
...
...
Write
Preview
Supports
Markdown
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