|
Boost Users : |
Subject: Re: [Boost-users] [fusion]Is it possible to wrap a function template into a function object?
From: Gordon Woodhull (gordon_at_[hidden])
Date: 2011-08-12 00:23:31
On Aug 11, 2011, at 11:15 PM, someguy wrote:
> 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<<t; }
>
> temp_fun_1<Loopback>(); //in main(). I can't even instantiate
> temp_fun_1.
(Please post as plain text.)
I think the essential problem is that you'd have to have a template parameter which takes a function template, which can't be done:
http://groups.google.com/group/comp.std.c++/browse_thread/thread/64738c5af5bcaf04
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