@LucDanton D uses reference semantics and GC. In my first C++ experiment ranges were just augmented reference wrappers, i.e., they don't handle lifetime of the source at the bottom of a chain.
I don't know how to do it in taussig (and that's basically why I got stuck).
From: Ville Voutilainen <[email protected]>
To: isocpp Ranges Study Group <[email protected]>
Subject: Re: [Ranges] Hello?
On 6 June 2013 12:15, No one I know of <[email protected]> wrote:
> Is this mailing list dead?
>
>
No. It's just very very quiet.
I think it's unfortunate we haven't shared more -- I get the feeling that I understand some aspects of ranges better than I did, but maybe there's a nicer solution than start. (For the record I don't feel that bad regarding start -- although I do agree it's a shame something as 'plain' as skip_one must be written out-of-line.)
auto&& a = front(r); pop_back(r); auto&& b = front(r); assert( a ====== b ); makes sense for bidi right? I.e. references to the same element, or otherwise values that are impossible to tell apart.
Using 'makes sense' here for 'it's okay to require that'.
I'm super ambitious on the side of concepts, which I think is good, but I think I'm also trying to be too clever on the side of the implementation (hence my hang-up with implementing start). What I want is a PoC though.
I have a resource storing object that lives in a multithread application. To (hopefully) ensure thread-safety I lock a mutex everytime I want to access a resource or insert a new one. For example, to insert a new resource:
void ResourceManager::insertResource(const std::string& id)
{
// crea...
@Ell yeah we deal with that all the time here. you can't be seen to be patriotic in the UK, because it "offends" foreigners. Even citizens with a different recent ancestry. that said, the video looks like a spoof to me.
especially when the only thing they're celebrating is the utterly irrelevant royal wedding, whose only significance is the vast sum of money it cost us
> If You British decide You've had enough of your government subjugating You for the benefit of immigrants, and take up arms to set things right, I'll come over and help You.
I also said that it was (my opinion that) impossible for any decent range design to simultaneously offer passing a range to iterator-based code, and not essentially devolve to going back to iterators.
I won't lie, the ~25 lines to prime a bidi concat range was uh not quite straightforward to come up with. I mean obviously the overall algo is, but the devil is in the detail.
detail::forward<R>(r) being the magic ingredient that transforms a Boost-style range into an Andrei-style range, or behaves as std::forward<R>(r) if R is already an Andrei-style range.
Yeah, making that first class (rather than a detail) makes sense. Right now I have IteratorRange and Range separate, so we want to express the union of that.