What are some reasonable stylistic limits on type inference?
- by Jon Purdy
C++0x adds pretty darn comprehensive type inference support. I'm sorely tempted to use it everywhere possible to avoid undue repetition, but I'm wondering if removing explicit type information all over the place is such a good idea. Consider this rather contrived example:
Foo.h:
#include <set>
class Foo {
private:
static…