Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 85732 Details for
Bug 131635
GCC crash on metaprogramming code
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Original source
z.cpp (text/plain), 940 bytes, created by
Isaiah Damron
on 2006-04-28 23:47:16 UTC
(
hide
)
Description:
Original source
Filename:
MIME Type:
Creator:
Isaiah Damron
Created:
2006-04-28 23:47:16 UTC
Size:
940 bytes
patch
obsolete
>#include <iostream> >#include "boost/mpl/vector.hpp" >#include "boost/mpl/map.hpp" >#include "boost/mpl/placeholders.hpp" >#include "boost/mpl/fold.hpp" >#include "boost/mpl/clear.hpp" >#include "boost/mpl/insert.hpp" >using namespace boost::mpl; >using placeholders::_1; >using placeholders::_2; >/*template<type> > struct tag > { > template<typename v> > operator()(type t,v val) { return index<type>; }; > }; > */ > > > >template<typename tags> >struct cont { > typedef clear<map<pair<int,int> > >::type emptymap; > template<typename T> > struct index { typedef int type; void p() { std::cout << typeid(T) << endl; }; }; > typedef typename fold<tags, emptymap, insert<_1,pair<_2, index<_2> > > >::type > ftype; > > //FE(i, tags) > // map<index<i> > // index<tag> > template<typename T> > int get() > { > > }; > template<typename tag> > ftype<tag>::type > operator()(tag &z) > { > ftype<tag>::type > } >}; > > > > >struct name {}; >cont<vector<name> > cz; >main() >{ > > >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 131635
:
85731
| 85732