boost-mpl Questions

6

Implicit conversion can be really useful when types are semantically equivalent. For example, imagine two libraries that implement a type identically, but in different namespaces. Or just a type th...
Crumpled asked 15/1, 2011 at 20:37

2

Solved

Simple question really, let me give some background: I have a mpl::vector of types where each type has an id, at run time I use the mpl::for_each to iterate through this vector and find the matchi...
Helenahelene asked 25/1, 2011 at 19:55

1

Solved

Is there a way to deduce the signature, result- and parameter-types, of a c++0x lambda as a Boost.MPL sequence, for example a boost::mpl::vector? For example, for a lambda []( float a, int b ) -&g...
Plutonian asked 19/12, 2010 at 11:8

1

Solved

This is as far as I've gotten, #include <boost/mpl/list.hpp> #include <algorithm> namespace mpl = boost::mpl; class RunAround {}; class HopUpAndDown {}; class Sleep {}; template<t...
Stav asked 15/5, 2010 at 15:28

1

Solved

Background This is for a memory manager in a game engine. I have a freelist implemented, and would like to have a compile-time list if these. (A MPL or Fusion vector, for example). The freelist's c...
Legatee asked 13/1, 2010 at 22:23

3

I have used something like the following to compose policies for my application: The policy classes look like this: struct Policy { static void init(); static void cleanup(); //... }; templat...
Pasco asked 2/11, 2008 at 9:36

© 2022 - 2024 — McMap. All rights reserved.