
On Mon, Jun 8, 2009 at 12:01 AM, Joel Falcou <joel.falcou@lri.fr> wrote:
Steven Ross wrote:
Is there a boolean argument that can be used to identify whether a data type is some form of string that has a [] operator that returns an integer data type (preferably 2 or less bytes in size)?
Well you cna easily write a small traits meta-functions using sizeof trick to detect the presence of operator[] Check the Introspection.zip file in the vault, there is prototype for such thing
Thanks for the suggestion Joel. I took a look at that and it appears to do what I need (haven't tested), but is too complicated for me to support separately just for my Boost.Algorithm.Sorting proposal, where it isn't a critical need. Is Introspection going to be added to Boost?