Re: [Boost-users] [Review] Formal review of Fixed Strings librarystarts today
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Hartmut Kaiser
The fixed_strings library is a buffer-overrun safe version of using fixed-size character array data buffers. It provides integration with the C API allowing strcpy, et. al. to be used safely for a fixed string and provides a basic_string interface allowing easy migration to C++ strings.
Wouldn't the typical user have to replace all the char * and char [] with boost::fixed_string<n>? What are the advantages over replacing them with string or even boost array and overloading the appropriate C api calls? Thanks Sohail
Wouldn't the typical user have to replace all the char * and char [] with boost::fixed_string<n>? What are the advantages over replacing them with string or even boost array and overloading the appropriate C api calls?
std::string doesn't have a mutable buffer and uses dynamic allocation. boost::array doesn't have a basic_string interface
participants (2)
-
Martin Adrian
-
Sohail Somani