Questions tagged [boost-mpl]

The Boost.MPL library is a general-purpose, high-level C++ template metaprogramming framework of compile-time algorithms, sequences and metafunctions. It provides a conceptual foundation and an extensive set of powerful and coherent tools that make doing explicit metaprogramming in C++ as easy and enjoyable as possible within the current language.

The Boost.MPL library is a general-purpose, high-level C++ template metaprogramming framework of compile-time algorithms, sequences and metafunctions. It provides a conceptual foundation and an extensive set of powerful and coherent tools that make doing explicit metaprogramming in C++ as easy and enjoyable as possible within the current language.

289 questions
0
votes
1 answer

boost::enable_if MSVC

I have code, that compiles and runs as expected in gcc and doesn't compile in MSVC 2012 RC, i can't explain why, so it's bug in MSVC, or my code is incorrect? #include #include #include…
ForEveR
  • 55,233
  • 2
  • 119
  • 133
0
votes
2 answers

Defining member variables from a boost::mpl:vector typelist

I am new to boost::mpl and TMP. I am trying to build a class as follows - template< typename T > class Demo { public: typedef boost::mpl::size NumDimensions; template< size_t D > struct Dim { typedef typename…
vsky
  • 389
  • 1
  • 5
  • 14
-1
votes
1 answer

C++ Boost::MPL fold example - wrong number of arguments

I'd like to process some template arguments by using boost::mpl::fold. At the moment, I'm still stuck to the sample provided by Boost as even that does not work for me. I get the following error: ..\src\main.cpp:18:32: error: template argument 2 is…
user1034081
  • 618
  • 5
  • 21
-1
votes
1 answer

boost multi index convert index to tag and loop on indexes

I have a template class(CrMultiIndex) that receive a template parameter a definition of boost multi index(GlobalHash).I work with c++14 I need a way to translate index to tag(n_to_tag)? And to loop on indexes in CrMultiIndex ctor or Init…
yaron
  • 439
  • 6
  • 16
1 2 3
19
20