New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Forking boost::lexical_cast as a new module #4287
Conversation
22223c3
to
db68b0b
Compare
libs/lexical_cast/include/hpx/lexical_cast/detail/basic_pointerbuf.hpp
Outdated
Show resolved
Hide resolved
libs/lexical_cast/include/hpx/lexical_cast/detail/converter_lexical.hpp
Outdated
Show resolved
Hide resolved
#include <limits> | ||
#include <type_traits> | ||
|
||
#include <boost/numeric/conversion/cast.hpp> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this be forked as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is an entire module, and should be handled separately.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is needed for this test only... Should we remove the test?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good to me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...which test is that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Uhh, my bad - it's not a test.
libs/lexical_cast/tests/unit/lexical_cast_integral_types_test.cpp
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please add checks to inspect deprecating the old #include
and the use of boost::lexical_cast
?
426b091
to
eabc189
Compare
@@ -0,0 +1,51 @@ | |||
// Copyright Antony Polukhin, 2013-2019. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should remove this particular test as it introduces a dependency on Boost variant.
|
||
#include <hpx/config.hpp> | ||
|
||
#include <boost/throw_exception.hpp> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we use our exception handling, instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, I don't think we can. The errors
module should be a foundational module, but it has quite a few dependencies, some of which in turn depend on this module.
We could always replace it with a naked throw
.
EXCLUDE_FROM_ALL | ||
NOLIBS | ||
DEPENDENCIES hpx_lexical_cast hpx_testing | ||
hpx_filesystem |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need filesystem as a dependent module? Is that for tests only?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like it, yes. I'll move the dependency to tests.
eabc189
to
ab847db
Compare
… module 'lexical_cast' - Drop wide char support - Drop locale support - Modernize
ab847db
to
3383465
Compare
It occurs to me that there's too much complexity in |
Right, you have replace most uses of |
This is superseded by #4288. |
No description provided.