View Single Post
Old 23 November 2020, 19:30   #7
Ernst Blofeld
<optimized out>

Ernst Blofeld's Avatar
Join Date: Sep 2020
Location: <optimized out>
Posts: 304
Found it.

I had:

    Model * model = (Model *) model;
instead of

    Model * model = (Model *) _model;
Not sure how this compiles, but

    Model * wibble = (Model *) wibble;
also compiles, and wibble definitely doesn't exist anywhere else in my code.

I think the best thing for me to do is to rework my variable naming to make this less likely to happen again.


    Model * wobble = wobble;
also compiles, so I assume there's part of the language standard I don't understand.

Last edited by Ernst Blofeld; 23 November 2020 at 19:36.
Ernst Blofeld is offline  
Page generated in 0.07884 seconds with 11 queries