Commits

pubby committed 5e04061

Fix macro comma error.

A comma in a template type name was messing up the macro.

  • Participants
  • Parent commits e18aa04
  • Branches dev

Comments (0)

Files changed (2)

File libdir/smpl/list/impl/lg_list_prerequisites_xmacro.hpp

 #include <boost/static_assert.hpp>
 #include <boost/preprocessor/cat.hpp>
 #include <boost/preprocessor/arithmetic/sub.hpp>
+#include <boost/preprocessor/punctuation/comma.hpp>
 #include <boost/preprocessor/repetition/enum.hpp>
 #include <boost/preprocessor/repetition/enum_shifted.hpp>
 #include <boost/preprocessor/repetition/repeat.hpp>

File libdir/smpl/list/impl/lg_list_xmacro.hpp

         };
       };
   };
+
   template<typename Head, typename... Tail>
   struct SMPL_LIST_NAME<Head, Tail...>
   #ifdef SMPL_LIST_INHERIT
-  : SMPL_LIST_INHERIT(SMPL_LIST_NAME<Head, Tail...>)
+  : SMPL_LIST_INHERIT(SMPL_LIST_NAME<Head BOOST_PP_COMMA() Tail...>)
   #endif
   {
     friend class ::smpl::impl::get_interface<SMPL_LIST_NAME>;