pastebin - collaborative debugging tool
rovema.kpaste.net RSS


Error message for Custom basic_string::operator new()
Posted by Anonymous on Mon 13th Jun 2022 15:58
raw | new post
modification of post by Anonymous (view diff)

  1. $ clang++ -std=gnu++11 -g std_string_custom_new1.cpp
  2. std_string_custom_new1.cpp:21:7: error: 'basic_string' is not a class, namespace, or enumeration
  3. void *basic_string::operator new(size_t size)
  4.       ^
  5. /usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/basic_string.h:77:11: note: 'basic_string' declared here
  6.     class basic_string
  7.           ^
  8. 1 error generated.

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}




All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at