martinmoene / lest

A modern, C++11-native, single-file header-only, tiny framework for unit-tests, TDD and BDD (includes C++98 variant)
Boost Software License 1.0
390 stars 45 forks source link

Topic/performance and expressiveness #5

Closed wilhelmtell closed 10 years ago

wilhelmtell commented 10 years ago

A number of slight and not-so-slight fine-tunings. Some are performance:

Some are expressiveness-related:

And one commit for idiomatic code: if a member of a copiable object is const then the object is not assignable. I think that usually (barring ... cases I can't think of off the top of my head) copying and assigning go together: when one is allowed so should the other be.

martinmoene commented 10 years ago

Hi Matan,

Thanks for your suggested changes with their explanations. I agree with several of your observations, but not all.

Thanks to @jwakely for his help.

cheers, Martin