voxelinc / voxellancer

A Game about Voxels in Space
http://voxellancer.chrdw.de
14 stars 2 forks source link

[Idea] Use Component instead of std::unique_ptr for members #601

Closed mrzzzrm closed 10 years ago

mrzzzrm commented 10 years ago

Pros:

Negs: * _this references in initializer lists need to be passed like std::ref(_this) instead of *this.

Please tell me what you think about this asap and I will implement it everywhere and extend the Component class with const getters and stuff.

xchrdw commented 10 years ago

looks good

gersseba commented 10 years ago

I like the init list. :+1:

psieg commented 10 years ago

If I don't even need the ref, I'm up

mrzzzrm commented 10 years ago

will implement and reopen