← Back to team overview

kicad-developers team mailing list archive

Re: [PATCH] In-memory string io_benchmark and some docs

 

Sorry for the fat finger send.  Her is the error:

C:/msys64/home/wstambaugh/src/kicad-trunk/tools/io_benchmark/io_benchmark.cpp:
In function 'void bench_string_lr(const wxFileName&, int, BENCH_REPORT&)':
C:/msys64/home/wstambaugh/src/kicad-trunk/tools/io_benchmark/io_benchmark.cpp:166:48:
error: call of overloaded 'basic_ifstream(wxString)' is ambiguous
         std::ifstream ifs( aFile.GetFullPath() );
                                                ^
In file included from
C:/msys64/home/wstambaugh/src/kicad-trunk/tools/io_benchmark/io_benchmark.cpp:32:
C:/msys64/mingw64/include/c++/8.2.0/fstream:539:7: note: candidate:
'std::basic_ifstream<_CharT, _Traits>::basic_ifstream(const wchar_t*,
std::ios_base::openmode) [with _CharT = char; _Traits =
std::char_traits<char>; std::ios_base::openmode = std::_Ios_Openmode]'
       basic_ifstream(const wchar_t* __s,
       ^~~~~~~~~~~~~~
C:/msys64/mingw64/include/c++/8.2.0/fstream:524:7: note: candidate:
'std::basic_ifstream<_CharT, _Traits>::basic_ifstream(const char*,
std::ios_base::openmode)[with _CharT = char; _Traits =
std::char_traits<char>; std::ios_base::openmode = std::_Ios_Openmode]'
       basic_ifstream(const char* __s, ios_base::openmode __mode =
ios_base::in)
       ^~~~~~~~~~~~~~
C:/msys64/home/wstambaugh/src/kicad-trunk/tools/io_benchmark/io_benchmark.cpp:
In function 'void bench_string_lr_reuse(const wxFileName&, int,
BENCH_REPORT&)':
C:/msys64/home/wstambaugh/src/kicad-trunk/tools/io_benchmark/io_benchmark.cpp:189:44:
error: call of overloaded 'basic_ifstream(wxString)' is ambiguous
     std::ifstream ifs( aFile.GetFullPath() );
                                            ^
In file included from
C:/msys64/home/wstambaugh/src/kicad-trunk/tools/io_benchmark/io_benchmark.cpp:32:
C:/msys64/mingw64/include/c++/8.2.0/fstream:539:7: note: candidate:
'std::basic_ifstream<_CharT, _Traits>::basic_ifstream(const wchar_t*,
std::ios_base::openmode) [with _CharT = char; _Traits =
std::char_traits<char>; std::ios_base::openmode = std::_Ios_Openmode]'
       basic_ifstream(const wchar_t* __s,
       ^~~~~~~~~~~~~~
C:/msys64/mingw64/include/c++/8.2.0/fstream:524:7: note: candidate:
'std::basic_ifstream<_CharT, _Traits>::basic_ifstream(const char*,
std::ios_base::openmode)[with _CharT = char; _Traits =
std::char_traits<char>; std::ios_base::openmode = std::_Ios_Openmode]'
       basic_ifstream(const char* __s, ios_base::openmode __mode =
ios_base::in)
       ^~~~~~~~~~~~~~


On 10/29/2018 10:38 AM, John Beard wrote:
> Hi,
> 
> Just a couple of tweaks to the io_benchmark, including a baseline
> in-memory string-based streams, and some other dev-doc stuff that was
> conflicting with the fuzzing docs.
> 
> Cheers,
> 
> John
> 
> 
> _______________________________________________
> Mailing list: https://launchpad.net/~kicad-developers
> Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp
> 


References