Guillaume Labourey created AVRO-4084:
----------------------------------------
Summary: CommonsSchemasTests.cc does not compile on windows
Key: AVRO-4084
URL: https://issues.apache.org/jira/browse/AVRO-4084
Project: Apache Avro
Issue Type: Bug
Components: c++
Affects Versions: 1.12.0
Reporter: Guillaume Labourey
Assignee: Guillaume Labourey
{code:java}
***\lang\c++\test\CommonsSchemasTests.cc(44,55): Reason : cannot convert from
'const std::filesystem::path::value_type *' to 'const
avro::DataFileReader<avro::GenericDatum> {code}
On Windows, {{std::filesystem::path::value_type}} is based on {{wchar_t}} and
not on {{{}char{}}}.
([std::filesystem::path|https://en.cppreference.com/w/cpp/filesystem/path]).
That's why {{DataFileReader<>}} constructor is not compatible with the
filesystem::path default string conversion operator.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)