User profile: benbalach

User info
User name:benbalach
Email:benbalach@yahoo.com
Name:Ben Balach
History
Joined:
Number of posts:148
Latest posts:

Covariant return type to reference to base, must be const?
@Peter87 Thank you very much now I understand! I Google'd "C++ temporary objects" and I found a ve...

Covariant return type to reference to base, must be const?
I was trying some stuff out with covariant return types and I stumbled on something that I don't und...

Check value of member variable directly or through member function?
Take a look at the code: [code] class A { A() : empty{false} { } bool is_empty() const { ...

Dependency injection std::shared_ptr vs reference
In fact the more I think about it the more using a reference seems like the right thing to do. The l...

Dependency injection std::shared_ptr vs reference
If you use a reference you have to make sure that [code]Buffer[/code] does not go out of scope while...