boost.function as parameter of class template
I want to use boost.function object as a parameter of class template:
template< function1
On Monday 18 February 2002 07:21 am, you wrote:
I want to use boost.function object as a parameter of class template:
template< function1
F > class foo { // ... }; but VC6 tells me "F : template parameter can never be initialized" why?
The template parameter 'F' is a nontype template parameter. Nontype template
parameters can only be of integral type. boost::function1
Hello, I am curious as to the conditions under which an iterator adaptor for permutations results in a savings of time and labor, or a clearer program. Would anybody be so kind as to show an example? Yours Sincerely, Craig Hicks KGK Tokyo Douglas Gregor wrote:
On Monday 18 February 2002 07:21 am, you wrote:
I want to use boost.function object as a parameter of class template:
template< function1
F > class foo { // ... }; but VC6 tells me "F : template parameter can never be initialized" why?
The template parameter 'F' is a nontype template parameter. Nontype template parameters can only be of integral type. boost::function1
is a class type, so it cannot be used as the type of a nontype template parameter. We might be able to suggest an alternative construct if you give us more information about the problem you are trying to solve.
Doug
Info: http://www.boost.org Wiki: http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl Unsubscribe: mailto:boost-users-unsubscribe@yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
[Non-text portions of this message have been removed]
participants (3)
-
Douglas Gregor
-
hicks
-
richielee616