|
Boost : |
From: David Abrahams (dave_at_[hidden])
Date: 2003-08-04 21:43:52
If anyone's interested, the enclosed patch against the current CC-mode
CVS makes Emacs CC-mode very well-behaved w.r.t. identifying template
syntax. Along with various hacks in my .emacs file to customize how
it's indented, I'm able to do this automatically:
template <
class T
, class U
, class R
, class U
, template<
class F
, class H
, class G
>::type
, class U
= std::auto_ptr<
std::vector<int,
allocator<
int
>
>
>,
, groot
>
struct foo
{
typedef typename foo<
bar
>::template baz<
mumble, bag, floot
>::type boo;
};
The preceding commas are my preference, but it also handles trailing
commas nicely. If anyone's interested in culling the relevant hacks
from my .emacs file, you can find it at
http://www.boost-consulting.com/.emacs
Enjoy,
-- Dave Abrahams Boost Consulting www.boost-consulting.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk