main.cpp: In instantiation of ‘void unique_append(Container&, const Value&) [with Container = const char*; Value = int]’:
main.cpp:17:34: required from here
main.cpp:7:5: error: no matching function for call to ‘end(const char*&)’
main.cpp:7:5: note: candidates are:
In file included from /usr/include/c++/4.7/utility:76:0,
from /usr/include/c++/4.7/algorithm:61,
from main.cpp:1:
/usr/include/c++/4.7/initializer_list:99:5: note: template<class _Tp> constexpr const _Tp* std::end(std::initializer_list<_Tp>)
/usr/include/c++/4.7/initializer_list:99:5: note: template argument deduction/substitution failed:
main.cpp:7:5: note: mismatched types ‘std::initializer_list<_Tp>’ and ‘const char*’
In file included from /usr/include/c++/4.7/string:53:0,
from /usr/include/c++/4.7/random:41,
from /usr/include/c++/4.7/bits/stl_algo.h:67,
from /usr/include/c++/4.7/algorithm:63,
from main.cpp:1:
/usr/include/c++/4.7/bits/range_access.h:68:5: note: template<class _Container> decltype (__cont.end()) std::end(_Container&)
/usr/include/c++/4.7/bits/range_access.h:68:5: note: template argument deduction/substitution failed:
/usr/include/c++/4.7/bits/range_access.h: In substitution of ‘template<class _Container> decltype (__cont.end()) std::end(_Container&) [with _Container = const char*]’:
main.cpp:7:5: required from ‘void unique_append(Container&, const Value&) [with Container = const char*; Value = int]’
main.cpp:17:34: required from here
/usr/include/c++/4.7/bits/range_access.h:68:5: error: request for member ‘end’ in ‘__cont’, which is of non-class type ‘const char*’
main.cpp: In instantiation of ‘void unique_append(Container&, const Value&) [with Container = const char*; Value = int]’:
main.cpp:17:34: required from here
/usr/include/c++/4.7/bits/range_access.h:78:5: note: template<class _Container> decltype (__cont.end()) std::end(const _Container&)
/usr/include/c++/4.7/bits/range_access.h:78:5: note: template argument deduction/substitution failed:
/usr/include/c++/4.7/bits/range_access.h: In substitution of ‘template<class _Container> decltype (__cont.end()) std::end(const _Container&) [with _Container = const char*]’:
main.cpp:7:5: required from ‘void unique_append(Container&, const Value&) [with Container = const char*; Value = int]’
main.cpp:17:34: required from here
/usr/include/c++/4.7/bits/range_access.h:78:5: error: request for member ‘end’ in ‘__cont’, which is of non-class type ‘const char* const’
main.cpp: In instantiation of ‘void unique_append(Container&, const Value&) [with Container = const char*; Value = int]’:
main.cpp:17:34: required from here
/usr/include/c++/4.7/bits/range_access.h:97:5: note: template<class _Tp, long unsigned int _Nm> _Tp* std::end(_Tp (&)[_Nm])
/usr/include/c++/4.7/bits/range_access.h:97:5: note: template argument deduction/substitution failed:
main.cpp:7:5: note: mismatched types ‘_Tp [_Nm]’ and ‘const char*’
main.cpp:7:5: error: no matching function for call to ‘begin(const char*&)’
main.cpp:7:5: note: candidates are:
In file included from /usr/include/c++/4.7/utility:76:0,
from /usr/include/c++/4.7/algorithm:61,
from main.cpp:1:
/usr/include/c++/4.7/initializer_list:89:5: note: template<class _Tp> constexpr const _Tp* std::begin(std::initializer_list<_Tp>)
/usr/include/c++/4.7/initializer_list:89:5: note: template argument deduction/substitution failed:
main.cpp:7:5: note: mismatched types ‘std::initializer_list<_Tp>’ and ‘const char*’
In file included from /usr/include/c++/4.7/string:53:0,
from /usr/include/c++/4.7/random:41,
from /usr/include/c++/4.7/bits/stl_algo.h:67,
from /usr/include/c++/4.7/algorithm:63,
from main.cpp:1:
/usr/include/c++/4.7/bits/range_access.h:48:5: note: template<class _Container> decltype (__cont.begin()) std::begin(_Container&)
/usr/include/c++/4.7/bits/range_access.h:48:5: note: template argument deduction/substitution failed:
/usr/include/c++/4.7/bits/range_access.h: In substitution of ‘template<class _Container> decltype (__cont.begin()) std::begin(_Container&) [with _Container = const char*]’:
main.cpp:7:5: required from ‘void unique_append(Container&, const Value&) [with Container = const char*; Value = int]’
main.cpp:17:34: required from here
/usr/include/c++/4.7/bits/range_access.h:48:5: error: request for member ‘begin’ in ‘__cont’, which is of non-class type ‘const char*’
main.cpp: In instantiation of ‘void unique_append(Container&, const Value&) [with Container = const char*; Value = int]’:
main.cpp:17:34: required from here
/usr/include/c++/4.7/bits/range_access.h:58:5: note: template<class _Container> decltype (__cont.begin()) std::begin(const _Container&)
/usr/include/c++/4.7/bits/range_access.h:58:5: note: template argument deduction/substitution failed:
/usr/include/c++/4.7/bits/range_access.h: In substitution of ‘template<class _Container> decltype (__cont.begin()) std::begin(const _Container&) [with _Container = const char*]’:
main.cpp:7:5: required from ‘void unique_append(Container&, const Value&) [with Container = const char*; Value = int]’
main.cpp:17:34: required from here
/usr/include/c++/4.7/bits/range_access.h:58:5: error: request for member ‘begin’ in ‘__cont’, which is of non-class type ‘const char* const’
main.cpp: In instantiation of ‘void unique_append(Container&, const Value&) [with Container = const char*; Value = int]’:
main.cpp:17:34: required from here
/usr/include/c++/4.7/bits/range_access.h:87:5: note: template<class _Tp, long unsigned int _Nm> _Tp* std::begin(_Tp (&)[_Nm])
/usr/include/c++/4.7/bits/range_access.h:87:5: note: template argument deduction/substitution failed:
main.cpp:7:5: note: mismatched types ‘_Tp [_Nm]’ and ‘const char*’
main.cpp:7:5: error: no matching function for call to ‘end(const char*&)’
main.cpp:7:5: note: candidates are:
In file included from /usr/include/c++/4.7/utility:76:0,
from /usr/include/c++/4.7/algorithm:61,
from main.cpp:1:
/usr/include/c++/4.7/initializer_list:99:5: note: template<class _Tp> constexpr const _Tp* std::end(std::initializer_list<_Tp>)
/usr/include/c++/4.7/initializer_list:99:5: note: template argument deduction/substitution failed:
main.cpp:7:5: note: mismatched types ‘std::initializer_list<_Tp>’ and ‘const char*’
In file included from /usr/include/c++/4.7/string:53:0,
from /usr/include/c++/4.7/random:41,
from /usr/include/c++/4.7/bits/stl_algo.h:67,
from /usr/include/c++/4.7/algorithm:63,
from main.cpp:1:
/usr/include/c++/4.7/bits/range_access.h:68:5: note: template<class _Container> decltype (__cont.end()) std::end(_Container&)
/usr/include/c++/4.7/bits/range_access.h:68:5: note: template argument deduction/substitution failed:
/usr/include/c++/4.7/bits/range_access.h: In substitution of ‘template<class _Container> decltype (__cont.end()) std::end(_Container&) [with _Container = const char*]’:
main.cpp:7:5: required from ‘void unique_append(Container&, const Value&) [with Container = const char*; Value = int]’
main.cpp:17:34: required from here
/usr/include/c++/4.7/bits/range_access.h:68:5: error: request for member ‘end’ in ‘__cont’, which is of non-class type ‘const char*’
main.cpp: In instantiation of ‘void unique_append(Container&, const Value&) [with Container = const char*; Value = int]’:
main.cpp:17:34: required from here
/usr/include/c++/4.7/bits/range_access.h:78:5: note: template<class _Container> decltype (__cont.end()) std::end(const _Container&)
/usr/include/c++/4.7/bits/range_access.h:78:5: note: template argument deduction/substitution failed:
/usr/include/c++/4.7/bits/range_access.h: In substitution of ‘template<class _Container> decltype (__cont.end()) std::end(const _Container&) [with _Container = const char*]’:
main.cpp:7:5: required from ‘void unique_append(Container&, const Value&) [with Container = const char*; Value = int]’
main.cpp:17:34: required from here
/usr/include/c++/4.7/bits/range_access.h:78:5: error: request for member ‘end’ in ‘__cont’, which is of non-class type ‘const char* const’
main.cpp: In instantiation of ‘void unique_append(Container&, const Value&) [with Container = const char*; Value = int]’:
main.cpp:17:34: required from here
/usr/include/c++/4.7/bits/range_access.h:97:5: note: template<class _Tp, long unsigned int _Nm> _Tp* std::end(_Tp (&)[_Nm])
/usr/include/c++/4.7/bits/range_access.h:97:5: note: template argument deduction/substitution failed:
main.cpp:7:5: note: mismatched types ‘_Tp [_Nm]’ and ‘const char*’
main.cpp:7:5: error: ‘find’ was not declared in this scope
main.cpp:7:5: note: suggested alternative:
In file included from /usr/include/c++/4.7/algorithm:63:0,
from main.cpp:1:
/usr/include/c++/4.7/bits/stl_algo.h:4457:5: note: ‘std::find’
main.cpp:8:9: error: request for member ‘emplace_back’ in ‘c’, which is of non-class type ‘const char*’
main.cpp:9:5: error: request for member ‘empty’ in ‘c’, which is of non-class type ‘const char*’
Partager