what is template<typename> struct +; ?

While trying to read \boost\fusion adapt_struct.hpp and understand the internals of BOOST_FUSION_ADAPT_STRUCT. I came across this code: namespace boost { namespace mpl \ { \ template<typename> \ struct +; \ \ //.... }} Can anyone please explain what " template<typename> struct +; " means here? I am puzzled how it ever compiles as an operator is used as a class name. Thanks.

Tan, Tom (Shanghai) wrote:
While trying to read \boost\fusion adapt_struct.hpp and understand the internals of BOOST_FUSION_ADAPT_STRUCT. I came across this code:
namespace boost { namespace mpl \
{ \
template<typename> \
struct +; \
\
//….
}}
Can anyone please explain what “ template<typename> struct +; “
means here? I am puzzled how it ever compiles as an operator is used as a class name.
I don't see this in adapt_struct.hpp. Which version of Boost are you finding this in ?
participants (2)
-
Edward Diener
-
Tan, Tom (Shanghai)