In file included from ./internal/platform/base_inputstream.h:19:
./internal/platform/exception.h:108:23: error: no matching constructor for initialization of 'location::nearby::Exception'
Exception exception{Exception::kFailed};
^~~~~~~~
./internal/platform/exception.h:25:8: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'location::nearby::Exception::Value' to 'const location::nearby::Exception' for 1st argument
struct Exception {
^
./internal/platform/exception.h:25:8: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'location::nearby::Exception::Value' to 'location::nearby::Exception' for 1st argument
struct Exception {
^
./internal/platform/exception.h:25:8: note: candidate constructor (the implicit default constructor) not viable: requires 0 arguments, but 1 was provided
./internal/platform/exception.h:90:20: error: no matching constructor for initialization of 'location::nearby::Exception'
exception_ = Exception{Exception::kSuccess};
^ ~~~~~
./internal/platform/exception.h:25:8: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'location::nearby::Exception::Value' to 'const location::nearby::Exception' for 1st argument
struct Exception {
^
./internal/platform/exception.h:25:8: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'location::nearby::Exception::Value' to 'location::nearby::Exception' for 1st argument
struct Exception {
^
./internal/platform/exception.h:25:8: note: candidate constructor (the implicit default constructor) not viable: requires 0 arguments, but 1 was provided
In file included from internal/platform/byte_utils.cc:20:
./internal/platform/base_input_stream.h:38:12: error: no matching conversion for functional-style cast from 'size_t' (aka 'unsigned long') to 'ExceptionOr' (aka 'ExceptionOr')
return ExceptionOr(real_offset);
^~~~~~~
./internal/platform/exception.h:72:7: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'size_t' (aka 'unsigned long') to 'const location::nearby::ExceptionOr' for 1st argument
class ExceptionOr {
^
./internal/platform/exception.h:72:7: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'size_t' (aka 'unsigned long') to 'location::nearby::ExceptionOr' for 1st argument
./internal/platform/exception.h:85:12: note: candidate template ignored: could not match 'ExceptionOr' against 'unsigned long'
explicit ExceptionOr(ExceptionOr value) {
^
./internal/platform/exception.h:74:3: note: candidate constructor not viable: requires 0 arguments, but 1 was provided
ExceptionOr() = default;
^
In file included from internal/platform/byte_utils.cc:20:
./internal/platform/base_input_stream.h:43:12: error: no matching constructor for initialization of 'location::nearby::Exception'
return {Exception::kSuccess};
^~~~~
./internal/platform/exception.h:25:8: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'location::nearby::Exception::Value' to 'const location::nearby::Exception' for 1st argument
struct Exception {
^
./internal/platform/exception.h:25:8: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'location::nearby::Exception::Value' to 'location::nearby::Exception' for 1st argument
./internal/platform/exception.h:25:8: note: candidate constructor (the implicit default constructor) not viable: requires 0 arguments, but 1 was provided
4 errors generated.
CC=clang CXX=clang++ bazel build -s --check_visibility=false //connections:core --spawn_strategy=standalone --verbose_failures
In file included from ./internal/platform/base_inputstream.h:19: ./internal/platform/exception.h:108:23: error: no matching constructor for initialization of 'location::nearby::Exception' Exception exception{Exception::kFailed}; ^' (aka 'ExceptionOr')
return ExceptionOr(real_offset);
^' for 1st argument
class ExceptionOr {
^
./internal/platform/exception.h:72:7: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'size_t' (aka 'unsigned long') to 'location::nearby::ExceptionOr' for 1st argument
./internal/platform/exception.h:85:12: note: candidate template ignored: could not match 'ExceptionOr' against 'unsigned long'
explicit ExceptionOr(ExceptionOr value) {
^
./internal/platform/exception.h:74:3: note: candidate constructor not viable: requires 0 arguments, but 1 was provided
ExceptionOr() = default;
^
In file included from internal/platform/byte_utils.cc:20:
./internal/platform/base_input_stream.h:43:12: error: no matching constructor for initialization of 'location::nearby::Exception'
return {Exception::kSuccess};
^
~~~~~~~ ./internal/platform/exception.h:25:8: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'location::nearby::Exception::Value' to 'const location::nearby::Exception' for 1st argument struct Exception { ^ ./internal/platform/exception.h:25:8: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'location::nearby::Exception::Value' to 'location::nearby::Exception' for 1st argument struct Exception { ^ ./internal/platform/exception.h:25:8: note: candidate constructor (the implicit default constructor) not viable: requires 0 arguments, but 1 was provided ./internal/platform/exception.h:90:20: error: no matching constructor for initialization of 'location::nearby::Exception' exception_ = Exception{Exception::kSuccess}; ^~~~~~ ./internal/platform/exception.h:25:8: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'location::nearby::Exception::Value' to 'const location::nearby::Exception' for 1st argument struct Exception { ^ ./internal/platform/exception.h:25:8: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'location::nearby::Exception::Value' to 'location::nearby::Exception' for 1st argument struct Exception { ^ ./internal/platform/exception.h:25:8: note: candidate constructor (the implicit default constructor) not viable: requires 0 arguments, but 1 was provided In file included from internal/platform/byte_utils.cc:20: ./internal/platform/base_input_stream.h:38:12: error: no matching conversion for functional-style cast from 'size_t' (aka 'unsigned long') to 'ExceptionOr~~~~~~./internal/platform/exception.h:72:7: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'size_t' (aka 'unsigned long') to 'const location::nearby::ExceptionOr~~~~./internal/platform/exception.h:25:8: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'location::nearby::Exception::Value' to 'const location::nearby::Exception' for 1st argument struct Exception { ^ ./internal/platform/exception.h:25:8: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'location::nearby::Exception::Value' to 'location::nearby::Exception' for 1st argument ./internal/platform/exception.h:25:8: note: candidate constructor (the implicit default constructor) not viable: requires 0 arguments, but 1 was provided 4 errors generated.