Skip to content

Catch-all printValue implementation changed from refs to pointers#78

Merged
FonsRademakers merged 2 commits into
root-project:masterfrom
perovic:CatchAll
Aug 20, 2015
Merged

Catch-all printValue implementation changed from refs to pointers#78
FonsRademakers merged 2 commits into
root-project:masterfrom
perovic:CatchAll

Conversation

@perovic
Copy link
Copy Markdown
Contributor

@perovic perovic commented Aug 20, 2015

Catch-all printValue implementation changed to enable correct invocation if only parent type overload exists (ex. if there is no overload for TF1*, compiler invokes the overload to its best parent overload match, in the worst case void*).

Argument changed from reference to pointer to support this.
isEnumType Coverity bug changed from if to assert (coding, not runtime error)
Changed the way printValue is invoked in order to correctly cast Value to the needed value (e.g. LL -> short). Extracted value stays in scope while we execute printValue, because we use the address.

Boris Perovic added 2 commits August 20, 2015 16:34
…ion if only parent type overload exists (ex. if there is no overload for TF1*, compiler invokes the overload to its best parent overload match, in the worst case void*).

Argument changed from reference to pointer to support this.
isEnumType Coverity bug changed from if to assert (coding, not runtime error)
Changed the way printValue is invoked in order to correctly cast Value to the needed value (e.g. LL -> short). Extracted value stays in scope while we execute printValue, because we use the address.
…ding "RuntimePrintValue.h".

Should be looked into in the future.
@FonsRademakers FonsRademakers merged commit d68a399 into root-project:master Aug 20, 2015
@perovic perovic deleted the CatchAll branch August 20, 2015 15:06
Dr15Jones pushed a commit to Dr15Jones/root that referenced this pull request Sep 22, 2015
…ManyBranches

Support TTree with more than 32766 branch in TTreeFormula.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants