When a string shouldn't be used or is invalid, use std::nullopt to make it clear it's value shouldn't be used. Without this it's possible to accidentally use an empty string which will silently fail.
When a string shouldn't be used or is invalid, use std::nullopt to make it clear it's value shouldn't be used. Without this it's possible to accidentally use an empty string which will silently fail.