Darwin: Weird call to structure constructor in formatter.h
Darwin: Weird call to structure constructor in formatter.h
- Subject: Darwin: Weird call to structure constructor in formatter.h
- From: Daniel Stenning <email@hidden>
- Date: Sun, 04 Feb 2007 17:51:27 +0000
- Thread-topic: Darwin: Weird call to structure constructor in formatter.h
I am puzzled by this line in formatter.h in OS/X Darwin
( ie BSD Unix ) :
_M_parameters[_M_num_parameters++] = _Parameter(__value, __name);
Can anyone explain WHY ?????
Here, _Parameter(__value, __name) - far as I can tell - is one of many
structure constructors, and thus should NOT return any value !!!
The structure _Parameter{} is declared inside class _Error_formatter.
The complete code for the section concerned is:
const _Error_formatter&
_M_string(const char* __value, const char* __name = 0) const
{
if (_M_num_parameters < __max_parameters)
_M_parameters[_M_num_parameters++] = _Parameter(__value, __name);
return *this;
}
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden