
21 Jan
2007
21 Jan
'07
5:34 p.m.
On 1/21/07, John Maddock <john@johnmaddock.co.uk> wrote:
Following requests for a way to detect smart pointers, I've attached below a small trait that detects whether a type can be dereferenced or not.
Should an optional count as a pointer? Or by detecting a smart pointer do people just mean that it models http://boost.org/libs/utility/OptionalPointee.html ?
At present I can't see any downside to this? Anyone spot any potential flaws?