Author
anonymous
over 6 years ago
Language
C++
Compiler
gcc 8.2.0
Options
Warnings
Boost 1.68.0
C++2a(GNU)
no pedantic
Author
anonymous
over 6 years ago
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.68.0/gcc-8.2.0/include -std=gnu++2a
In file included from /opt/wandbox/gcc-8.2.0/include/c++/8.2.0/sstream:827,
from prog.cc:2:
/opt/wandbox/gcc-8.2.0/include/c++/8.2.0/bits/sstream.tcc: In instantiation of 'std::__cxx11::basic_stringbuf<_CharT, _Traits, _Alloc>::int_type std::__cxx11::basic_stringbuf<_CharT, _Traits, _Alloc>::overflow(std::__cxx11::basic_stringbuf<_CharT, _Traits, _Alloc>::int_type) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = MyAllocator; std::__cxx11::basic_stringbuf<_CharT, _Traits, _Alloc>::int_type = int]':
/opt/wandbox/gcc-8.2.0/include/c++/8.2.0/bits/sstream.tcc:79:5: required from here
/opt/wandbox/gcc-8.2.0/include/c++/8.2.0/bits/sstream.tcc:132:18: error: no matching function for call to 'std::__cxx11::basic_string<char, std::char_traits<char>, MyAllocator>::basic_string(std::__cxx11::basic_string<char, std::char_traits<char>, MyAllocator>::allocator_type)'
__string_type __tmp(_M_string.get_allocator());
^~~~~
In file included from /opt/wandbox/gcc-8.2.0/include/c++/8.2.0/string:52,
from /opt/wandbox/gcc-8.2.0/include/c++/8.2.0/bits/locale_classes.h:40,
from /opt/wandbox/gcc-8.2.0/include/c++/8.2.0/bits/ios_base.h:41,
from /opt/wandbox/gcc-8.2.0/include/c++/8.2.0/ios:42,
from /opt/wandbox/gcc-8.2.0/include/c++/8.2.0/ostream:38,
from /opt/wandbox/gcc-8.2.0/include/c++/8.2.0/iostream:39,
from prog.cc:1:
/opt/wandbox/gcc-8.2.0/include/c++/8.2.0/bits/basic_string.h:649:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::__sv_wrapper, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = MyAllocator]'
basic_string(__sv_wrapper __svw, const _Alloc& __a)
^~~~~~~~~~~~
/opt/wandbox/gcc-8.2.0/include/c++/8.2.0/bits/basic_string.h:649:7: note: candidate expects 2 arguments, 1 provided
/opt/wandbox/gcc-8.2.0/include/c++/8.2.0/bits/basic_string.h:639:2: note: candidate: 'template<class _Tp, class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _Tp&, const _Alloc&)'
basic_string(const _Tp& __t, const _Alloc& __a = _Alloc())
^~~~~~~~~~~~
/opt/wandbox/gcc-8.2.0/include/c++/8.2.0/bits/basic_string.h:639:2: note: template argument deduction/substitution failed:
/opt/wandbox/gcc-8.2.0/include/c++/8.2.0/bits/basic_string.h:628:2: note: candidate: 'template<class _Tp, class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _Tp&, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type, const _Alloc&)'
basic_string(const _Tp& __t, size_type __pos, size_type __n,
^~~~~~~~~~~~
/opt/wandbox/gcc-8.2.0/include/c++/8.2.0/bits/basic_string.h:628:2: note: template argument deduction/substitution failed:
In file included from /opt/wandbox/gcc-8.2.0/include/c++/8.2.0/sstream:827,
from prog.cc:2:
/opt/wandbox/gcc-8.2.0/include/c++/8.2.0/bits/sstream.tcc:132:18: note: candidate expects 4 arguments, 1 provided
__string_type __tmp(_M_string.get_allocator());
^~~~~
In file included from /opt/wandbox/gcc-8.2.0/include/c++/8.2.0/string:52,
from /opt/wandbox/gcc-8.2.0/include/c++/8.2.0/bits/locale_classes.h:40,
from /opt/wandbox/gcc-8.2.0/include/c++/8.2.0/bits/ios_base.h:41,
from /opt/wandbox/gcc-8.2.0/include/c++/8.2.0/ios:42,
from /opt/wandbox/gcc-8.2.0/include/c++/8.2.0/ostream:38,
from /opt/wandbox/gcc-8.2.0/include/c++/8.2.0/iostream:39,
from prog.cc:1:
/opt/wandbox/gcc-8.2.0/include/c++/8.2.0/bits/basic_string.h:614:9: note: candidate: 'template<class _InputIterator, class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(_InputIterator, _InputIterator, const _Alloc&)'
basic_string(_InputIterator __beg, _InputIterator __end,
^~~~~~~~~~~~
/opt/wandbox/gcc-8.2.0/include/c++/8.2.0/bits/basic_string.h:614:9: note: template argument deduction/substitution failed:
In file included from /opt/wandbox/gcc-8.2.0/include/c++/8.2.0/sstream:827,
from prog.cc:2:
/opt/wandbox/gcc-8.2.0/include/c++/8.2.0/bits/sstream.tcc:132:18: note: candidate expects 3 arguments, 1 provided
__string_type __tmp(_M_string.get_allocator());
^~~~~
In file included from /opt/wandbox/gcc-8.2.0/include/c++/8.2.0/string:52,
from /opt/wandbox/gcc-8.2.0/include/c++/8.2.0/bits/locale_classes.h:40,
from /opt/wandbox/gcc-8.2.0/include/c++/8.2.0/bits/ios_base.h:41,
from /opt/wandbox/gcc-8.2.0/include/c++/8.2.0/ios:42,
from /opt/wandbox/gcc-8.2.0/include/c++/8.2.0/ostream:38,
from /opt/wandbox/gcc-8.2.0/include/c++/8.2.0/iostream:39,
from prog.cc:1:
/opt/wandbox/gcc-8.2.0/include/c++/8.2.0/bits/basic_string.h:576:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = MyAllocator]'
basic_string(basic_string&& __str, const _Alloc& __a)
^~~~~~~~~~~~
/opt/wandbox/gcc-8.2.0/include/c++/8.2.0/bits/basic_string.h:576:7: note: candidate expects 2 arguments, 1 provided
/opt/wandbox/gcc-8.2.0/include/c++/8.2.0/bits/basic_string.h:572:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = MyAllocator]'
basic_string(const basic_string& __str, const _Alloc& __a)
^~~~~~~~~~~~
/opt/wandbox/gcc-8.2.0/include/c++/8.2.0/bits/basic_string.h:572:7: note: candidate expects 2 arguments, 1 provided
/opt/wandbox/gcc-8.2.0/include/c++/8.2.0/bits/basic_string.h:568:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::initializer_list<_Tp>, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = MyAllocator]'
basic_string(initializer_list<_CharT> __l, const _Alloc& __a = _Alloc())
^~~~~~~~~~~~
/opt/wandbox/gcc-8.2.0/include/c++/8.2.0/bits/basic_string.h:568:7: note: no known conversion for argument 1 from 'std::__cxx11::basic_string<char, std::char_traits<char>, MyAllocator>::allocator_type' {aka 'std::allocator<char>'} to 'std::initializer_list<char>'
/opt/wandbox/gcc-8.2.0/include/c++/8.2.0/bits/basic_string.h:541:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = MyAllocator]'
basic_string(basic_string&& __str) noexcept
^~~~~~~~~~~~
/opt/wandbox/gcc-8.2.0/include/c++/8.2.0/bits/basic_string.h:541:7: note: no known conversion for argument 1 from 'std::__cxx11::basic_string<char, std::char_traits<char>, MyAllocator>::allocator_type' {aka 'std::allocator<char>'} to 'std::__cxx11::basic_string<char, std::char_traits<char>, MyAllocator>&&'
/opt/wandbox/gcc-8.2.0/include/c++/8.2.0/bits/basic_string.h:529:7: note: candidate: 'template<class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type, _CharT, const _Alloc&)'
basic_string(size_type __n, _CharT __c, const _Alloc& __a = _Alloc())
^~~~~~~~~~~~
/opt/wandbox/gcc-8.2.0/include/c++/8.2.0/bits/basic_string.h:529:7: note: template argument deduction/substitution failed:
In file included from /opt/wandbox/gcc-8.2.0/include/c++/8.2.0/sstream:827,
from prog.cc:2:
/opt/wandbox/gcc-8.2.0/include/c++/8.2.0/bits/sstream.tcc:132:18: note: candidate expects 3 arguments, 1 provided
__string_type __tmp(_M_string.get_allocator());
^~~~~
In file included from /opt/wandbox/gcc-8.2.0/include/c++/8.2.0/string:52,
from /opt/wandbox/gcc-8.2.0/include/c++/8.2.0/bits/locale_classes.h:40,
from /opt/wandbox/gcc-8.2.0/include/c++/8.2.0/bits/ios_base.h:41,
from /opt/wandbox/gcc-8.2.0/include/c++/8.2.0/ios:42,
from /opt/wandbox/gcc-8.2.0/include/c++/8.2.0/ostream:38,
from /opt/wandbox/gcc-8.2.0/include/c++/8.2.0/iostream:39,
from prog.cc:1:
/opt/wandbox/gcc-8.2.0/include/c++/8.2.0/bits/basic_string.h:514:7: note: candidate: 'template<class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&)'
basic_string(const _CharT* __s, const _Alloc& __a = _Alloc())
^~~~~~~~~~~~
/opt/wandbox/gcc-8.2.0/include/c++/8.2.0/bits/basic_string.h:514:7: note: template argument deduction/substitution failed:
In file included from /opt/wandbox/gcc-8.2.0/include/c++/8.2.0/sstream:827,
from prog.cc:2:
/opt/wandbox/gcc-8.2.0/include/c++/8.2.0/bits/sstream.tcc:132:18: note: cannot convert 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::get_allocator() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = MyAllocator; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::allocator_type = std::allocator<char>]()' (type 'std::__cxx11::basic_string<char, std::char_traits<char>, MyAllocator>::allocator_type' {aka 'std::allocator<char>'}) to type 'const char*'
__string_type __tmp(_M_string.get_allocator());
^~~~~
In file included from /opt/wandbox/gcc-8.2.0/include/c++/8.2.0/string:52,
from /opt/wandbox/gcc-8.2.0/include/c++/8.2.0/bits/locale_classes.h:40,
from /opt/wandbox/gcc-8.2.0/include/c++/8.2.0/bits/ios_base.h:41,
from /opt/wandbox/gcc-8.2.0/include/c++/8.2.0/ios:42,
from /opt/wandbox/gcc-8.2.0/include/c++/8.2.0/ostream:38,
from /opt/wandbox/gcc-8.2.0/include/c++/8.2.0/iostream:39,
from prog.cc:1:
/opt/wandbox/gcc-8.2.0/include/c++/8.2.0/bits/basic_string.h:499:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = MyAllocator; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type = long unsigned int]'
basic_string(const _CharT* __s, size_type __n,
^~~~~~~~~~~~
/opt/wandbox/gcc-8.2.0/include/c++/8.2.0/bits/basic_string.h:499:7: note: candidate expects 3 arguments, 1 provided
/opt/wandbox/gcc-8.2.0/include/c++/8.2.0/bits/basic_string.h:481:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = MyAllocator; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type = long unsigned int]'
basic_string(const basic_string& __str, size_type __pos,
^~~~~~~~~~~~
/opt/wandbox/gcc-8.2.0/include/c++/8.2.0/bits/basic_string.h:481:7: note: candidate expects 4 arguments, 1 provided
/opt/wandbox/gcc-8.2.0/include/c++/8.2.0/bits/basic_string.h:465:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = MyAllocator; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type = long unsigned int]'
basic_string(const basic_string& __str, size_type __pos,
^~~~~~~~~~~~
/opt/wandbox/gcc-8.2.0/include/c++/8.2.0/bits/basic_string.h:465:7: note: candidate expects 3 arguments, 1 provided
/opt/wandbox/gcc-8.2.0/include/c++/8.2.0/bits/basic_string.h:450:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = MyAllocator; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type = long unsigned int]'
basic_string(const basic_string& __str, size_type __pos,
^~~~~~~~~~~~
/opt/wandbox/gcc-8.2.0/include/c++/8.2.0/bits/basic_string.h:450:7: note: candidate expects 3 arguments, 1 provided
/opt/wandbox/gcc-8.2.0/include/c++/8.2.0/bits/basic_string.h:437:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = MyAllocator]'
basic_string(const basic_string& __str)
^~~~~~~~~~~~
/opt/wandbox/gcc-8.2.0/include/c++/8.2.0/bits/basic_string.h:437:7: note: no known conversion for argument 1 from 'std::__cxx11::basic_string<char, std::char_traits<char>, MyAllocator>::allocator_type' {aka 'std::allocator<char>'} to 'const std::__cxx11::basic_string<char, std::char_traits<char>, MyAllocator>&'
/opt/wandbox/gcc-8.2.0/include/c++/8.2.0/bits/basic_string.h:429:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = MyAllocator]'
basic_string(const _Alloc& __a) _GLIBCXX_NOEXCEPT
^~~~~~~~~~~~
/opt/wandbox/gcc-8.2.0/include/c++/8.2.0/bits/basic_string.h:429:7: note: no known conversion for argument 1 from 'std::__cxx11::basic_string<char, std::char_traits<char>, MyAllocator>::allocator_type' {aka 'std::allocator<char>'} to 'const MyAllocator&'
/opt/wandbox/gcc-8.2.0/include/c++/8.2.0/bits/basic_string.h:420:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string() [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = MyAllocator]'
basic_string()
^~~~~~~~~~~~
/opt/wandbox/gcc-8.2.0/include/c++/8.2.0/bits/basic_string.h:420:7: note: candidate expects 0 arguments, 1 provided
Exit Code:
1