top | item 25323145

(no title)

eugene3306 | 5 years ago

> How can we replace nested comments?

you may use multiline string literals

discuss

order

tkln|5 years ago

Care to elaborate on how that's supposed work in practice?

scatters|5 years ago

Wow, ugly, but it works:

    (void) R"long-comment(
    /* C-style comment */
    std::cout << "hello" << std::endl;
    )long-comment";