Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add examples #32

Open
3 tasks
jfalcou opened this issue Jun 22, 2015 · 7 comments
Open
3 tasks

Add examples #32

jfalcou opened this issue Jun 22, 2015 · 7 comments

Comments

@jfalcou
Copy link
Collaborator Author

jfalcou commented Jun 29, 2015

look there first : http://stackoverflow.com/questions/tagged/boost-mpl

@edouarda
Copy link
Owner

Let's settle for 5 short examples we will include in the documentation.

A section like "Understanding brigand with 5 simple examples"

@jfalcou
Copy link
Collaborator Author

jfalcou commented Jun 29, 2015

Make sense, now to find them :p
The first example of MPL is rebuilding a smallish Boost.Unit using integral_list, not very keen :/

@edouarda
Copy link
Owner

First one, very easy to do with brigand

http://stackoverflow.com/questions/28207266/how-to-instantiate-template-from-mplvector

I would even suggest a direct comparison with MPL.

Then this one

http://stackoverflow.com/questions/27985565/how-do-i-fold-an-mpl-type-list-into-a-variadic-container

Maybe this one

http://stackoverflow.com/questions/6713420/c-convert-integer-to-string-at-compile-time

Then a way to iterate on types to do something at runtime

Then something more advanced and complete

@jfalcou
Copy link
Collaborator Author

jfalcou commented Jun 29, 2015

I like all of them. For the third, we basically generate a integral_list<char,...> ?
maybe we can alis integral_list<char,...> to c_str<..>

@edouarda
Copy link
Owner

What is good is to show how simple it is to do with brigand

@jfalcou
Copy link
Collaborator Author

jfalcou commented Jun 29, 2015

yes

@jfalcou jfalcou added this to the Version 1.1 milestone Sep 25, 2015
@jfalcou jfalcou modified the milestones: Version 1.1, Version 1.2 Dec 6, 2015
@edouarda edouarda modified the milestones: Version 1.3, Version 1.2 Mar 14, 2016
@edouarda edouarda changed the title Add an examples folder with actual example Add examples Aug 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants