Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 4 years ago

Language

C++

Compiler

gcc HEAD 11.0.0 20201205 (experimental)

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

Author

anonymous

over 4 years ago

all.hpp

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/gcc-head/include -std=gnu++2a
(visit(vis_t{}, data{42}))                                  true
(visit(vis_t{}, data{0}))                                   false
(visit(vis_t{}, data{0.}))                                  true
(visit(vis_t{}, data{42.}))                                 false
(visit(vis_t{}, data{"adsa"}))                              false
(visit(vis_t{}, data{"adsas"}))                             true
Exit Code:
0