The C++ std::string_ref is still a proposal and not set in stone, but from 
what's circulating around, we are (by design) *extremely* close to being an 
identical interface (and precisely the same data layout).  Also very similar to 
the analogous classes now in Boost and LLVM.


On Jan 11, 2014, at 4:50 AM, Ramiro Pereira de Magalhães 
<[email protected]> wrote:

> I did a quick research on the topic and wasn't able to find any material on 
> the web discussing the cons of such approach. This may be because this idea 
> is somewhat recent, or because it hasn't a negative side to it. I'd go with 
> the second option by the way.
> 
> The only requirement I'd like to suggest is that OIIO string_ref interface 
> should be the very similar to C++14's interface to simplify future migrations.
> 
> 
> 2014/1/10 Larry Gritz <[email protected]>
> I'm likely to merge this over the weekend if nobody has a strong objection.
> Speak up now or hold your peace.
> 

--
Larry Gritz
[email protected]



_______________________________________________
Oiio-dev mailing list
[email protected]
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

Reply via email to