Mathias Gaunard | 9 Feb 11:51

Re: TMP runtime access problem

Willy Liu a écrit :
> Hi, I wonder that how to access metadata in runtime.
> If I pre-compute something and save them into a template ARRAY<int N>,
> how can I random access the metadatas in runtime?
> What I can only do is binary searching. Is it possible to do in
> constant time, or there exist some functions in MPL doing this?

Just copy the data to an array, for example using mpl::for_each.

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost


Gmane