mirror of
https://github.com/matrix-construct/construct
synced 2024-11-25 16:22:35 +01:00
ircd: Add lex_cast/boost::lexical_cast util.
This commit is contained in:
parent
61b517ca3c
commit
7405910c2e
2 changed files with 12 additions and 0 deletions
|
@ -111,6 +111,16 @@ struct case_mapped_less
|
|||
#endif
|
||||
|
||||
|
||||
#ifdef BOOST_LEXICAL_CAST_INCLUDED
|
||||
template<class T = std::string,
|
||||
class... Args>
|
||||
auto lex_cast(Args&&... args)
|
||||
{
|
||||
return boost::lexical_cast<T>(std::forward<Args>(args)...);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
} // namespace util
|
||||
} // namespace ircd
|
||||
#endif // __cplusplus
|
||||
|
|
|
@ -78,6 +78,8 @@ extern "C" {
|
|||
#include <RB_INC_FSTREAM
|
||||
#include <RB_INC_IOSTREAM
|
||||
#include <RB_INC_CSTDIO
|
||||
|
||||
//#include <RB_INC_BOOST_LEXICAL_CAST_HPP
|
||||
#endif
|
||||
|
||||
#endif /* _RB_REQUIRES_H */
|
||||
|
|
Loading…
Reference in a new issue