Uploaded image for project: 'ROOT'
  1. ROOT
  2. ROOT-7792

Weird type output in interactive root

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Low
    • Resolution: Fixed
    • Affects Version/s: 6.04/02
    • Fix Version/s: 6.10/00
    • Component/s: Cling
    • Labels:
      None
    • Environment:

      Linux.

    • Development:

      Description

      root [0] sqrt(2)
      (typename __gnu_cxx::__enable_if<__is_integer<int>::__value, double>::__type) 1.414214e+00
      root [1]
       
      It looks like the type is taken from the function declaration, not from its result.  Of course the correct output would be the same as here:
      root [1] sqrt(2.)
      (double) 1.414214e+00
      root [2]

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              axel Axel Naumann
              Reporter:
              20bb69b559e97a92f35e Tobias Schl├╝ter
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: