c++ - Compiler error: std::basic_ios<_Elem, _Traits>::basic_ios(const std::basic_ios<_Elem, _Traits>::_Myt &) -
anyone come across error before? i'm @ loss precisely causing this:
1>...include\sstream(640): error : "std::basic_ios<_elem, _traits>::basic_ios(const std::basic_ios<_elem, _traits>::_myt &) [with _elem=char, _traits=std::char_traits<char>]" 1>...include\istream(922): error : "std::basic_ios<_elem, _traits>::basic_ios(const std::basic_ios<_elem, _traits>::_myt &) [with _elem=char, _traits=std::char_traits<char>]" 1>...include\istream(18): error : "std::basic_ios<_elem, _traits>::basic_ios(const std::basic_ios<_elem, _traits>::_myt &) [with _elem=char, _traits=std::char_traits<char>]" 1>...include\ostream(37): error : "std::basic_ios<_elem, _traits>::basic_ios(const std::basic_ios<_elem, _traits>::_myt &) [with _elem=char, _traits=std::char_traits<char>]" it doesn't give indication of in source code have caused this, , have no idea problem error pointing (it says error). mean, use streams, strings on source code, can hint @ causing this?
msvc 2010, compiled using nvcc
after hours of isolating bug, managed resolve issue: in case comes across error, error nvcc's way of complaining you're implicitly copying std::stringstream object, not allowed.
in case, had exception class myerror contained std::stringstream object deep down inside, , calling throw myerror(...) implicitly caused illegal copy occur.
the full resolution explained in this separate answer.
Comments
Post a Comment