Should I use noexcept method modifier for getters always in C++11?
I mean simple getters here that just return members. At least in all my getters I have here an exception can't possibly be thrown. One downside is that a getter gets too verbose:
const std::string& getName() const noexcept{ return name; }
The good side as pointed out in Stroustrup's book is that the compiler might do some optimizations here and there.