Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 3 years ago

Language

C++

Compiler

gcc HEAD 12.0.0 20210721 (experimental)

Options
Warnings
Boost 1.73.0
C++2b(GNU)
no pedantic

Author

anonymous

over 3 years ago

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/gcc-head/include -std=gnu++2b
prog.cc:20:32: error: expected ',' or '...' before 'from'
   20 | void list::swap(const string[] from, const string[] to)
      |                                ^~~~
prog.cc:20:6: error: no declaration matches 'void list::swap(const std::string*)'
   20 | void list::swap(const string[] from, const string[] to)
      |      ^~~~
prog.cc:14:10: note: candidate is: 'void list::swap(const std::string*, const std::string*)'
   14 |     void swap(const string[], const string[]);
      |          ^~~~
prog.cc:9:7: note: 'class list' defined here
    9 | class list
      |       ^~~~
Exit Code:
1