[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Monotone-devel] C++11
From: |
Markus Wanner |
Subject: |
Re: [Monotone-devel] C++11 |
Date: |
Fri, 16 May 2014 19:57:59 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.4.0 |
Stephen,
thanks for trying.
On 05/16/2014 07:47 PM, Stephen Leake wrote:
> On msys2:
>
> g++ --version
> g++.exe (Rev2, Built by MSYS2 project) 4.9.0
gcc 4.9.0 is pretty new. I just recently got that via Debian testing and
haven't used it much, yet.
> Apparently 'std::shared_ptr<void>' is illegal, and that is enforced in
> gcc 4.9.0
Yeah, seems like a weird construct.
> cow_trie::_data is set by the 'walk' code above; apparently we have two
> node types. So to use a shared_ptr, we need a union of those types.
..or give the two a common base class?
> Can we use a unique_ptr here?
That doesn't make the void pointer any more type safe. We should get rid
of void*, that's supposed to be C++, after all.
Regards
Markus Wanner
signature.asc
Description: OpenPGP digital signature
- Re: [Monotone-devel] C++11, (continued)
- Re: [Monotone-devel] C++11, Hendrik Boom, 2014/05/16
- Re: [Monotone-devel] C++11, Markus Wanner, 2014/05/16
- Re: [Monotone-devel] C++11, Hendrik Boom, 2014/05/16
- Re: [Monotone-devel] C++11, Stephen Leake, 2014/05/16
- Re: [Monotone-devel] C++11, Hendrik Boom, 2014/05/16
Re: [Monotone-devel] C++11, Markus Wanner, 2014/05/16
Re: [Monotone-devel] C++11, Stephen Leake, 2014/05/16
- Re: [Monotone-devel] C++11,
Markus Wanner <=
Re: [Monotone-devel] C++11, Stephen Leake, 2014/05/16