Why can you write "class bla;" what does that even mean
>>59835053
it's like initializing the class before it's actually initialized. So that you can use it before it's been defined.
https://en.wikipedia.org/wiki/Forward_declaration
>>59835083
>>59835099
ok thanks
>>59835053
>#pragma once
Get the fuck out
>>59835118
>#pragma twice
get the fuck in here
>>59835118
#pragma once is perfectly fine if you're writing code that never has any reason to be compiled by a compiler that doesn't support it. It's a genuinely good feature and avoiding it unconditionally because it's nonstandard is stupid
>>59835254
it's not standards compliant you shithead
also, empty forward declarations are a blatant code smell and well structured programs don't need them.
>>59835254
>avoiding it unconditionally because it's nonstandard is stupid
>>>59835254
>it's not standards compliant you shithead
stay classy, /g/ :^)
>>59835210
Holy shit I missed that, linch this man