Hi All I'm clutching at straws here, so this may be a complete fiction, but I seem to recall mention of purely syntactic concept definitions as part of the now-abandoned C++0x concept proposal. Things like hasPlus. Maybe I've just made this up! Does any such thing exist in boost anywhere? Maybe as a concept check or type trait? Thx - Rob.
Check herehttps://svn.boost.org/svn/boost/sandbox/type_traits/boost/type_traits/.
There are several different type traits that can check for operators
(excluding friend operators afaik).
This code currently is not part of the standard, but can be downloaded from
the Boost Sandbox.
--Rideliner
On Sat, Jul 23, 2011 at 2:24 PM, Robert Jones
Hi All
I'm clutching at straws here, so this may be a complete fiction, but I seem to recall mention of purely syntactic concept definitions as part of the now-abandoned C++0x concept proposal. Things like hasPlus. Maybe I've just made this up!
Does any such thing exist in boost anywhere? Maybe as a concept check or type trait?
Thx
- Rob.
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
Check here. There are several different type traits that can check for operators (excluding friend operators afaik). This code currently is not part of the standard, but can be downloaded from the Boost Sandbox.
I plan to have it ready for the next release. But the sandbox version can be used (can_call_addition). Frédéric
participants (3)
-
Frédéric Bron
-
Nathan Currier
-
Robert Jones