D
D
David Nigmatullin2018-11-10 03:17:24
C++ / C#
David Nigmatullin, 2018-11-10 03:17:24

Visual studio 2017 bug?

let's say there is a code

queue<int> q;
for (int i = 0; i < 100; ++i)
    q.push(i);

Now, while the queue is not empty, you need to do something. We start typing while, a hint pops up, we press, a template appears, instead of true we start typing !q.empty (), the hint pops up again, we press again, and it just went into the while body, and did not add anything. Bug? Can be corrected?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Roman, 2018-11-10
@sodafago

https://msdn.microsoft.com/en-us/library/ms172677(...

R
res2001, 2018-11-10
@res2001

Can. Write to Microsoft.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question