r/cpp • • Jan 02 '26

Every LLM hallucinates that std::vector deletes elements in a LIFO order

252 Upvotes

118 comments sorted by

View all comments

Show parent comment

1

u/am17an Jan 02 '26 edited Jan 02 '26

> The LLM is correct, the standard does not specify the order.

The LLM doesn't say that though, it says they are destroyed from back to front?

> Why you would even ask an AI these sorts of questions is beyond me.

What sorts of questions should I ask, ReDucTor?

4

u/ConcertWrong3883 Jan 02 '26

> What sorts of questions should I ask

Simple childish ones, like the number of Rs in strawberry, not deeply technical ones!