Help following autobuilder.cpp code #396
Closed
WarrenReynolds
started this conversation in
General
Replies: 2 comments
-
Everything in auto builder is static now. Those lines initialize the static variables. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Makes sense. Showing my lack of understanding of C++ here. I knew a static variable was shared amongst instances of a class, I just didn't realise that you could access it without going through an instance of the class. You learn something new every day. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In Autobuilder.cpp there are the following lines not inside any class definition
How can you just reference the member variable of class without an instance of the class?
Is the autobuilder now a singleton class or something? If so is there supposed to be some private constructor that maintains a single instance of the class?
Beta Was this translation helpful? Give feedback.
All reactions