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

rowbearto

  • Senior Community Member
  • Posts: 2335
  • Hero Points: 132
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

  • Senior Community Member
  • Posts: 3955
  • Hero Points: 515
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

  • Senior Community Member
  • Posts: 3955
  • Hero Points: 515
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 »