Boost logo

Boost Users :

Subject: Re: [Boost-users] [fusion]Is it possible to wrap a function template into a function object?
From: someguy (nkljnuiub_at_[hidden])
Date: 2011-08-11 23:15:36


I changed to void return type and still had my compiler crashed...

template<template<typename T0> class F>
struct temp_fun_1
{
        template<typename TT0> void operator()( TT0 a1 )
        {
               // empty function for simplicity
        }
};

template<typename T> void Loopback(T t){ std::cout<&lt;t; }

temp_fun_1&lt;Loopback&gt;(); //in main(). I can't even instantiate
temp_fun_1.

--
View this message in context: http://boost.2283326.n4.nabble.com/fusion-Is-it-possible-to-wrap-a-function-template-into-a-function-object-tp3734880p3737817.html
Sent from the Boost - Users mailing list archive at Nabble.com.

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net