|
Boost : |
From: Max Khesin (MKhesin_at_[hidden])
Date: 2004-05-18 15:48:58
Just curious:
what do you think of Andrei's work on policy-based strings:
http://www.cuj.com/documents/s=7994/cujcexp1906alexandr/alexandr.htm
http://moderncppdesign.com/code/flex_string.zip
- does it do what you want (or leave flexibility to do what you want)
- if so why not just use it
- if not what doesn't it do
m
> -----Original Message-----
> From: Reece Dunn [mailto:msclrhd_at_[hidden]]
> Sent: Tuesday, May 18, 2004 2:30 PM
> To: boost_at_[hidden]
> Subject: [boost] basic_string interface generator
>
>
> Is there any interest in the ability to generate a
> basic_string compliant
> interface from a base set of functions in a similar way that
> the iterator
> adaptors work?
>
> I am currently developing a fixed-capacity string class that
> complies to the
> basic_string interface and have at least 3 variants:
>
> boost::fixed_string< n, CharT = char, StringPolicy =
> std::char_traits<
> char > >
> boost::char_string
> boost::wchar_string
>
> where fixed_string derives from boost::char_string or
> boost::wchar_string
> depending on CharT. It may be useful to implement these like this:
>
> struct char_string: boost::basic_string_impl< char_string >
> {
> // ...
> };
>
> void myfn( char_string & s )
> {
> // manipulate s like a basic_string or apply C-string functions
> }
>
> So the question is this: are other people interested in this
> concept, or is
> it better placed as an implementation detail?
>
> Regards,
> Reece
>
> _________________________________________________________________
> Want to block unwanted pop-ups? Download the free MSN Toolbar now!
> http://toolbar.msn.co.uk/
>
> _______________________________________________
> Unsubscribe & other changes:
http://lists.boost.org/mailman/listinfo.cgi/boost
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk