r/cpp • • May 03 '26

Modern C++ Programming

https://federico-busato.github.io/Modern-CPP-Programming/
165 Upvotes

14 comments sorted by

View all comments

Show parent comment

4

u/Superb_Garlic May 05 '26

the code sure as hell works and is also minimal but just throws a warning

Works as well as this does (with a warning included):

int get_random_int()
{
  int x;
  return x;
}