Skip to content

Instantly share code, notes, and snippets.

@brycelelbach
Created October 19, 2010 20:41
Show Gist options
  • Select an option

  • Save brycelelbach/635064 to your computer and use it in GitHub Desktop.

Select an option

Save brycelelbach/635064 to your computer and use it in GitHub Desktop.
#include <boost/spirit/home/prana/meta/unroll_copy.hpp>
#include <cstdio>
int main (void) {
using namespace boost::spirit::prana;
char buffer[35];
char* it = buffer;
unroll_copy_c<34, 'f'>::apply(it);
buffer[34] = '\0';
printf("%s\n", buffer);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment