You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The synopsis shows an exposition-only static data member called index but the same name is used for the parameters of iword, pword, register_callback, and redundantly in the event_callback alias declaration.
Then [ios.base.locales] uses index, presumably not referring to the static data member. [ios.base.storage] uses it to refer to the static data member in the definition of xalloc. The definitions of iword and pword use idx, which is inconsistent with the synopsis, but avoids confusion. [ios.base.callback] uses index as a function parameter again, and finally [ios.base.cons] uses it, again not referring to the static data member.
The text was updated successfully, but these errors were encountered:
The uses of index in [ios.base.locales] and [ios.base.cons] refer to a function parameter of a completely different function, even though that name isn't in scope there, and the static data member index is in scope. How lovely.
I'd read those uses as declaration of a "local variable" a la for(auto [fn, index] : registered-pairs) { ... }. Who knew that C++98 had structured bindings? :)
The synopsis shows an exposition-only static data member called
index
but the same name is used for the parameters ofiword
,pword
,register_callback
, and redundantly in theevent_callback
alias declaration.Then [ios.base.locales] uses
index
, presumably not referring to the static data member. [ios.base.storage] uses it to refer to the static data member in the definition ofxalloc
. The definitions ofiword
andpword
useidx
, which is inconsistent with the synopsis, but avoids confusion. [ios.base.callback] usesindex
as a function parameter again, and finally [ios.base.cons] uses it, again not referring to the static data member.The text was updated successfully, but these errors were encountered: