Is it possible to typedef long types that use templates? For example:
template <typename myfloat_t> class LongClassName { // ... }; template <typename myfloat_t> typedef std::vector< boost::shared_ptr< LongClassName<myfloat_t> > > LongCollection; LongCollection<float> m_foo;
This doesn’t work, but is there a way to achieve a similar effect? I just want to avoid having to type and read a type definition that covers almost the full width of my editor window.
No, that isn’t possible currently. It will be made possible in C++0X AFAIK.
The best I can think of is