fork download
  1. #include <stdint.h>
  2.  
  3. class nsAString {
  4. public:
  5. void StripChars(const char16_t* aChars, uint32_t aOffset = 0);
  6. };
  7.  
  8. class nsString : public nsAString {
  9. public:
  10. void StripChars(const char* aSet) {}
  11. };
  12.  
  13. int main() {
  14. nsString s;
  15. s.StripChars(u"");
  16. return 0;
  17. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function 'int main()':
prog.cpp:15:18: error: no matching function for call to 'nsString::StripChars(const char16_t [1])'
  s.StripChars(u"");
                  ^
prog.cpp:10:7: note: candidate: void nsString::StripChars(const char*)
  void StripChars(const char* aSet) {}
       ^
prog.cpp:10:7: note:   no known conversion for argument 1 from 'const char16_t [1]' to 'const char*'
stdout
Standard output is empty