#include <iostream>
#include <regex>
int main() {
std::cout << "Hello, World!" << std::endl;
std::regex reg("");
return 0;
}
reg is underlined with this message :
"In template: call to '__builtin_operator_delete' selects non-usual deallocation function error occurred here in instantiation of member function 'std::__new_allocator::deallocate' requested here in instantiation of member function 'std::allocator_traitsstd::allocator<char>::deallocate' requested here in instantiation of member function 'std::basic_string::_M_destroy' requested here in instantiation of member function 'std::basic_string::_M_dispose' requested here in instantiation of member function 'std::basic_string::~basic_string' requested here in instantiation of member function 'std::__detail::_Scanner::_Scanner' requested here in instantiation of member function 'std::__detail::_Compilerstd::regex_traits<char>::_Compiler' requested here in instantiation of member function 'std::basic_regex::_M_compile' requested here in instantiation of member function 'std::basic_regex::basic_regex' requested here non-usual 'operator delete' declared here"
What am I doing wrong?
Aucun commentaire:
Enregistrer un commentaire