1>C:\Users\puma\.conan2\p\b\foonab043832bb9606\p\include\lexy\parse_tree.hpp(128,49): error C2607: static assertion failed
1>(compiling source file '../../../../src/mql/mqlast/test/mqlast_parse.t.cpp')
1>C:\Users\puma\.conan2\p\b\foonab043832bb9606\p\include\lexy\parse_tree.hpp(128,49):
1>the template instantiation context (the oldest one first) is
1> D:\git\melinda.git\master\src\mql\mqlast\test\mqlast_parse.t.cpp(17,5):
1> see reference to function template instantiation 'lexy::validate_result<lexy_ext::_report_error<int>> lexy::parse_as_tree<channel,void,void,lexy::range_input<lexy::default_encoding,Iterator,Sentinel>,lexy_ext::_report_error<int>>(lexy::parse_tree<lexy::_rr<Encoding,Iterator,Sentinel>,void,void> &,const Input &,const ErrorCallback &)' being compiled
1> with
1> [
1> Iterator=std::_String_view_iterator<std::char_traits<char>>,
1> Sentinel=std::_String_view_iterator<std::char_traits<char>>,
1> Encoding=lexy::default_encoding,
1> Input=lexy::range_input<lexy::default_encoding,std::_String_view_iterator<std::char_traits<char>>,std::_String_view_iterator<std::char_traits<char>>>,
1> ErrorCallback=lexy_ext::_report_error<int>
1> ]
I assume that this is due to the fact that MSVC has checked iterators in Debug configuration and in that case the size of the iterator isn't equal to the size of the pointer.
The following code doesn't compile in Debug configuration on MSVC:
On this
static_assert
:Error message:
I assume that this is due to the fact that MSVC has checked iterators in Debug configuration and in that case the size of the iterator isn't equal to the size of the pointer.