|
Boost : |
Subject: Re: [boost] identifying a string type
From: Steven Ross (spreadsort_at_[hidden])
Date: 2009-06-09 07:42:45
On Mon, Jun 8, 2009 at 12:01 AM, Joel Falcou <joel.falcou_at_[hidden]> 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?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk