python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Using std::nullopt as a default value for an std::optional argument in C++17
This is a standard / good coding practice question.
I've recently started using std::optional in my codebase. I think it's great (and verbose) for specifying an argument that's optional, so long as a ...
heothesennoc
Votes: 0
Answers: 1
Default parameter in a function wouldnt compile/link without static inline
i was writing a BST class in C++ and wanted to add a default parameter to a function but, when i tried to the visual studio compiler gave compile and linking errors, so after a bit of googling, i made...
Programvarg
Votes: 0
Answers: 2