Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 Code Inspection Bug - emplace_back
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Tomato Guru

135 Posts

Posted - Jan 11 2018 :  3:17:54 PM  Show Profile  Reply with Quote

Auto-fixing a push_back to an emplace_back produces a syntax error for this case:

	std::vector<std::pair<int, int>> mapping;
	mapping.push_back(std::make_pair(0, 0));

	std::vector<std::pair<int, int>> mapping;
	mapping.emplace_back((0, 0);

Note the extra left parenthesis after 'emplace_back'.


Tomato Guru

135 Posts

Posted - Jan 11 2018 :  3:19:57 PM  Show Profile  Reply with Quote
Oh, here's my info:

VA_X.dll file version 10.9.2248.0 built 2017.12.16
DevEnv.exe version 15.0.27130.0 Professional
msenv.dll version 15.0.27128.1
Comctl32.dll version 6.10.15063.0
Windows 10 10.0 Build 15063
12 processors (x86-64, WOW64)
Language info: 1252, 0x409

Platform: Project defined
Stable Includes:
D:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\Linux\include\usr\include;
D:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\Linux\include\usr\include\x86_64-linux-gnu;
D:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\Linux\include\usr\lib\gcc\x86_64-linux-gnu\5\include-fixed;
D:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\Linux\include\usr\local\include;
D:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\Linux\include\usr\lib\gcc\x86_64-linux-gnu\5\include;
D:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\Linux\include\usr\include\c++\5\backward;
D:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\Linux\include\usr\include\x86_64-linux-gnu\c++\5;
D:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\Linux\include\usr\include\c++\5;
C:\Program Files (x86)\Windows Kits\8.1\Include\winrt;
C:\Program Files (x86)\Windows Kits\8.1\Include\shared;
C:\Program Files (x86)\Windows Kits\8.1\Include\um;
D:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Auxiliary\VS\UnitTest\include;
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt;
D:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Auxiliary\VS\include;
D:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.12.25827\atlmfc\include;
D:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.12.25827\include;

Other Includes:

Stable Source Directories:
C:\Program Files (x86)\Windows Kits\10\Source\10.0.10240.0\ucrt;
D:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Auxiliary\VS\src;
D:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.12.25827\crt\src;
D:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.12.25827\atlmfc\src\atl;
D:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.12.25827\atlmfc\src\mfcm;
D:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.12.25827\atlmfc\src\mfc;

Go to Top of Page

Whole Tomato Software

United Kingdom
3277 Posts

Posted - Jan 11 2018 :  3:49:22 PM  Show Profile  Reply with Quote
I am seeing the same problem here. Thank you for the clear description.

Go to Top of Page

Whole Tomato Software

2817 Posts

Posted - Feb 21 2018 :  5:46:27 PM  Show Profile  Reply with Quote
case=113724 is fixed in build 2258
Go to Top of Page

Tomato Guru

135 Posts

Posted - Feb 22 2018 :  10:49:54 AM  Show Profile  Reply with Quote
Confirmed, thanks for the fix.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2019 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000