
7 May
2014
7 May
'14
11:03 p.m.
[Andrzej Krzemienski]
the following program fires an assert in MS VC++ compiler (v. 10.0, 11.0, 12.0):
[Jonathan Wakely]
It's probably creating a copy-initialized temporary and binding to that temporary.
[STL]
Still repros with our current development build. I've filed this as DevDiv#939829 "operator=(const int& ii) creates a temporary when it shouldn't" in our internal database.
The compiler team has fixed this in the next major version of VC. Thanks, STL