Repository navigation
THRIFT-5660: lib: cpp: TTransportException: create thrift::numeric_cast - #2689
Conversation
With this, we're starting to clean up the commit history a bit. See #147 for details. apache/thrift#2687 apache/thrift#2681 apache/thrift#2680 apache/thrift#2630 apache/thrift#2682 apache/thrift#2689 Signed-off-by: Christopher Friedt <cfriedt@meta.com>
With this, we're starting to clean up the commit history a bit. See #147 for details. apache/thrift#2687 apache/thrift#2681 apache/thrift#2680 apache/thrift#2630 apache/thrift#2682 apache/thrift#2689 Signed-off-by: Christopher Friedt <cfriedt@meta.com>
43f8761 to
547352c
Compare
|
Currently seeing a bunch of MSVC errors like the one below: It looks as though MSVC defines |
This adds an equivalent implementation of `boost::numeric_cast` written purely in standard c++. The implementation is relatively trivial and reduces the dependency on `boost`. Adapted from https://stackoverflow.com/a/49658950/5636218 Signed-off-by: Chris Friedt <cfriedt@meta.com>
547352c to
0fdd2b8
Compare
|
@cfriedt I guess this broke sth. [4/354] Building CXX object lib/cpp/CM...ansport/TNonblockingServerSocket.cpp.o |
|
We can fix it or revert it. Your decision. BTW this also looks strange but don't know yet if it is related, may be caused by another patch. https://app.travis-ci.com/github/apache/thrift/jobs/589120685 |
That's weird - I'll take a look. Was that an autotools build or CMake build? |
|
CMake I'd say |
I've seen this before and it's due to header reordering. I've been careful to avoid that FWIR. There is that one header that defines |
I see the issue. Should be a quick fix. |
Ah, this one is because |
This adds an equivalent implementation of
boost::numeric_castwritten purely in standard c++.The implementation is relatively trivial and reduces the dependency on
boost.Adapted from
https://stackoverflow.com/a/49658950/5636218