I have tested it and the same problem as yours did not occur. If you have a problem with IntelliSense, please try the following method to see if it works:
1: Make sure that the Auto list members and Parameter information options are checked in Tools > Options > Text Editor > C/C++ > General.
2: Delete the .vs folder located in the solution directory. Reopen the solution and Visual Studio will automatically rebuild the IntelliSense database.
3: Tools > Options > Text Editor > C/C++ > Advanced > IntelliSense section, set the Disable IntelliSense option to True, then click OK to save the changes. Re-find the Disable IntelliSense option and set it to False, then click OK to save the changes.
4: If the above does not work, try resetting the Visual Studio settings: Tools > Import and Export Settings > Reset all settings.