- J:\Documents\DefualtMapEditorBuild\Updated editor\Ace_engineV3\console.cpp||In member function 'void Console::add_letter(char)':|
J:\Documents\DefualtMapEditorBuild\Updated editor\Ace_engineV3\console.cpp|40|error: invalid conversion from 'char' to 'const char*'|
J:\Documents\DefualtMapEditorBuild\Updated editor\Ace_engineV3\console.cpp|40|error: initializing argument 2 of 'std::basic_string<_CharT, _Traits, _Alloc>& std::basic_string<_CharT, _Traits, _Alloc>::insert(typename _Alloc::rebind<_CharT>::other::size_type, const _CharT*) [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>]'|
||=== Build finished: 2 errors, 0 warnings ===|
Code: Select all
void Console::add_letter(char text)
{
int length = buffer.length();
buffer.insert(length,text); // invalid conversion from 'char' to 'const char*'| ,
initializing argument 2 of 'std::basic_string<_CharT, _Traits, _Alloc>& std::basic_string<_CharT, _Traits, _Alloc>::insert(typename _Alloc::rebind<_CharT>::other::size_type, const _CharT*) [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>]'|
}