Boost logo

Boost Users :

From: Frank Mori Hess (frank.hess_at_[hidden])
Date: 2007-02-28 15:53:39


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wednesday 28 February 2007 15:05 pm, Cromwell Enage wrote:
> Assuming a compiler supports is_function, will this
> metafunction check for the presence of member
> functions in a class? For example:
>
> struct Foo
> {
> void bar();
> };
>
> struct Baz
> {
> };
>
> Given the right template argument, will is_function
> detect the bar() function in Foo but return false_ for
> Baz? If so, what is the right template argument? If

I think it will return false for both. Maybe "is_member_function_pointer"
would be more useful for you?

- --
Frank
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFF5evU5vihyNWuA4URAs6eAKDoO/wV9Vb+fUuNw07AMN6vbZvl+wCg30R0
BrmuZN6Nv4lwV9hVohsJvl8=
=Wu0v
-----END PGP SIGNATURE-----


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