Skip to content
Snippets Groups Projects
Commit 5644afc3 authored by Lucas Gandel's avatar Lucas Gandel
Browse files

vtkOpenFOAMReader: fix 32-bit compilation on Windows

#af7913ab introduced the following error when building for 32-bit with MSVC

  error C2666: 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>::operator []': 3 overloads have similar conversions
  note: could be 'const char &std::basic_string<char,std::char_traits<char>,std::allocator<char>>::operator [](const unsigned int) const'
  note: or       'char &std::basic_string<char,std::char_traits<char>,std::allocator<char>>::operator [](const unsigned int)'
  note: or       'built-in C++ operator[(const char *, int)'
  note: while trying to match the argument list '(vtkStdString, int)'

Whether 0 in "[0]" corresponds to "int" or "unsigned int" seems ambiguous.
Reverting the change to avoid using operator [].
parent b57618ee
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment