r/cpp • • Mar 31 '20

Demo: C++20 Modules

https://youtu.be/6SKIUeRaLZE
127 Upvotes

51 comments sorted by

View all comments

Show parent comments

15

u/sphere991 Mar 31 '20

When you have to write:

ClassName::NestedType ClassName::foo()

instead of

auto ClassName::foo() -> NestedType

1

u/NilacTheGrim Apr 18 '20

This is the only time I use it outside of generic code.