Author Topic: Wrong evaluated type in preview/mouse-over for std::min C++  (Read 110 times)

rowbearto

  • Senior Community Member
  • Posts: 1333
  • Hero Points: 98
Wrong evaluated type in preview/mouse-over for std::min C++
« on: March 09, 2019, 06:55:16 pm »
See attached screenshot and below code.

The type inferred by SlickEdit for "minSize" in mouse over and preview window is incorrect. Correct would be "size_t", but SlickEdit is showing "std"

When I use a different code browsing tool, cquery, it tells me that the evaluated type of "minSize" is "unsigned long".

Code: [Select]
#include <iostream>
#include <string>

int main()
{
    size_t helloSize = 5;
    size_t worldSize = 6;
    auto minSize = std::min(helloSize, worldSize);
    std::cout << "minSize = " << minSize << " \n";
    return 0;
}
« Last Edit: March 09, 2019, 10:47:56 pm by rowbearto »

Dennis

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2603
  • Hero Points: 396
Re: Wrong evaluated type in preview/mouse-over for std::min C++
« Reply #1 on: March 13, 2019, 03:15:22 pm »
I will look into this.

Dennis

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2603
  • Hero Points: 396
Re: Wrong evaluated type in preview/mouse-over for std::min C++
« Reply #2 on: March 18, 2019, 04:29:02 pm »
Working on a hot fix to 23.0.1.
« Last Edit: March 18, 2019, 04:42:02 pm by Dennis »