4
lorentz
4y

Seriously, FUCK initialization in parenthesis.
Because of fucked-up C++ standards I spent half an hour debugging a cryptic AST error because my method definition was apparently parsed as a member initialization.

Comments
  • 1
    This line
  • 1
    @Lor-inc
  • 1
    apparently parses as an initialization of GuiLayer's memeber called Iterator, and throws an error because of the space, when in fact Iterator is an internal class of GuiLayer and this is the constructor
  • 1
    What was it supposed to do?
  • 4
    Fuck c++ all my niggas use scratch
  • 0
    @Demolishun It was the first line of the definition of a constructor for the class GuiLayer::Iterator which takes one argument. The class and constructor had already been defined with the same param type in a header which was included.

    The solution was to repeat "::Iterator"
  • 1
    @Lor-inc Annoying, yeah.
Add Comment