
4 Oct
2007
4 Oct
'07
2:48 a.m.
Emil Dotchevski <emil <at> revergestudios.com> writes:
Why not use approach similar (if not based upon) named function parameters:
throw my_error().data(( tag_errno = errno, tag_name = name, .... ))
That's not bad at all, and seems totally possible. Thanks for the suggestion.
I also strongly in favor boost::optional instead of pointer result type.
What is the problem with the pointer?
It's pointer ;) Optional more clearly indicate your intention and safer. Gennadiy