Revision 6542fdbd8d000fc5b18eb3f396b5d18f1ffd6521 authored by Paul Russo on 13 June 2008, 20:34:11 UTC, committed by Paul Russo on 13 June 2008, 20:34:11 UTC
"int" so that NULL translates to a constant integral type. The C++ standard has this to say in section 4.10 Pointer conversions [conv.ptr]: A "null pointer constant" is an integral constant expression (5.19) rvalue of integer type that evaluates to zero. This is a problem in a function overloading situation like this: void f(double); void f(char*); int main() { for (int i = 1; i < 10; ++i) { f(i); } } The rule in section 4.10 on null pointer constants and the rules in Chapter 13 Overloading, make f(char*) a non-viable function for overloading purposes because i is not a "integral constant expression". However given: #define POGO 0 then in the same loop a call written: f(POGO); is ambiguous since both of the functions are viable (because POGO is substituted with 0, which is an integral constant expression). In cint "#define int MyType" is implemented as a variable definition using the special type macroInt$. So we need to make that type const so that overloading works correctly. Note that this is all a gross hack to paper over the fact that cint does not have a proper preprocessor. -- Paul Russo and Philippe Canal git-svn-id: http://root.cern.ch/svn/root/trunk@24273 27541ba8-7e3a-0410-8455-c3a389f83636
1 parent 81bd3c4
gallery.root
root õ d N
ð ^ ÚÖ ; Ün¶§¾ï Ä p)v×X T d TFile
gallery2.root%Images produced from some ROOT macros
gallery2.root%Images produced from some ROOT macros )v×X)v×Æ 1ß d Ü Ün¶§¾ï KÐ G#)v×(ç ( dTASImagearrows.png.ÿ (³/* arrows.png. */
static char *asxpm[] = {
/* columns rows colors chars-per-pixel */
"64 64 117 2",
" c #0C0C0C",
" . c #1F1A0B",
" X c #1E1A10",
" o c #261A0E",
" O c #251C10",
" + c #2A200F",
" @ c #2E2912",
" # c #3D2C19",
" $ c #3C301C",
" % c #2D2D2D",
" & c #363636",
" * c #402F15",
" = c #49381B",
" - c #503A1E",
" ; c #4F3B20",
" : c #523822",
" > c #6D2424",
" , c #7C1A5B",
" < c #5D1E7B",
" 1 c #651C72",
" 2 c #5D217D",
" 3 c #54401F",
" 4 c #62471F",
" 5 c #594024",
" 6 c #604624",
" 7 c #6B5229",
" 8 c #7D5A2E",
" 9 c #6A5431",
" 0 c #464646",
" q c #545454",
" w c #695946",
" e c #68604B",
" r c #646054",
" t c #606060",
" y c #736767",
" u c #707070",
" i c #951818",
" p c #962626",
" a c #CD0303",
" s c #F20404",
" d c #EE3131",
" f c #9F2A54",
" g c #BD2D46",
" h c #A62E53",
" j c #BC3354",
" k c #902A66",
" l c #963062",
" z c #C2334B",
" x c #DF3C46",
" c c #C03C5C",
" v c #E13B42",
" b c #805E32",
" n c #8C642F",
" m c #896633",
" M c #986B35",
" N c #987236",
" B c #AE7E3B",
" V c #EB403D",
" C c #9D7A49",
" Z c #9F7950",
" A c #A07E4D",
" S c #A17950",
" D c #866E6E",
" F c #887D61",
" G c #937575",
" H c #C24259",
" J c #EC4043",
" K c #E94C50",
" L c #471A8F",
" P c #531E90",
" I c #4F228B",
" U c #5D288E",
" Y c #4524A8",
" T c #4427B5",
" R c #2217CD",
" E c #372CD6",
" W c #2A31EC",
" Q c #4937C8",
" ! c #4136D1",
" ~ c #4B40D3",
" ^ c #6659D1",
" / c #5651EC",
" ( c #6363E5",
" ) c #7A6DE0",
" _ c #797CE4",
" ` c #B0803C",
" ' c #9A804F",
" ] c #A1804F",
" [ c #B68542",
" { c #A08254",
" } c #978261",
" | c #BABC5B",
". c #CED06A",
".. c #D0D36E",
".X c #E4E679",
".o c #878787",
".O c #9A9180",
".+ c #999999",
".@ c #AD9D9D",
".# c #A5A5A5",
".$ c #B2B2B2",
".% c #C3BBBB",
".& c #8680E0",
".* c #9A9AE3",
".= c #A5A5E3",
".- c #BEBEE2",
".; c #CACA91",
".: c #D0C995",
".> c #CFD090",
"., c #E4E7A8",
".< c #CACACA",
".1 c #D8D8D8",
".2 c #CACEE1",
".3 c #DCDCE2",
".4 c #DEE1E4",
".5 c #E2E3E3",
".6 c None",
".6.6.6.6.6.6.6.6.6.6.6.6.6.6.6.6.6.6.6.6.6.6.6.6.6.6.6.6.6.6.6.6.6.6.6.6.6.6.6.6.6.6.6.6.6.6.6.6.6.6.6.6.6.6.6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.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,..",
".,.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.;",
".,.5.5.5.5.5 } C A ' Z A C ' S C C ] Z C A ' Z A C ' S C C ] Z C A ' Z A C ' S C C ] Z C A ' Z A C ' S C C ] Z C A F.5.5.5.5.5.;",
".,.5.5.5.5.5 { [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ 9.5.5.5.5.5.;",
".,.5.5.5.5.5 { [ [ ` 5 M [ [ [ [ [ [ M [ [ [ [ [ B m [ [ [ [ M [ [ [ [ [ [ [ [ [ [ [ [ [ M N [ [ [ [ [ [ B [ [ [ [ 9.5.5.5.5.5.;",
".,.5.5.5.5.5 { [ [ M . 6 = = # # 3 # O = = # [ * @ 6 6 5 # = - $ * 5 = 8 b = # # = # = 6 # - 5 # # # 5 = o # [ [ [ 9.5.5.5.5.5.;",
".,.5.5.5.5.5 { [ [ B # - $ O # 3 5 o @ * = O ` # $ M 5 - X 4 5 # # + : - 5 # 6 = = ; o 7 5 - ; - 5 # # = # o [ [ [ 9.5.5.5.5.5.;",
".,.5.5.5.5.5 { [ [ [ [ [ [ [ [ [ [ n [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ 9.5.5.5.5.5.;",
".,.5.5.5.5.5 { [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ 9.5.5.5.5.5.;",
".,.5.5.5.5.5.O w w w e w w w e w w w e w w w e w w w e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