Boost logo

Boost :

Subject: Re: [boost] [utility] string_ref construction from rvalue reference to string
From: Nathan Crookston (nathan.crookston_at_[hidden])
Date: 2014-08-01 16:38:13

Андрей Давыдов wrote:

> Those errors can be caught at compile time if class "basic_string_ref"
> defintion would contain lines like following:
> template<typename Allocator>
> basic_string_ref(std::basic_string<charT, traits, Allocator> &&) = delete;
> I cannot understant does it prevent any correct usage of string_ref?
> +1. I can't think of a good reason to allow this.


Boost list run by bdawes at, gregod at, cpdaniel at, john at