Re: C++11
Markus Wanner <[email protected]>
| Newsgroups | gmane.comp.version-control.monotone.devel |
|---|---|
| Message-ID | <[email protected]> |
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 _______________________________________________ Monotone-devel mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/monotone-devel
signature.asc
(application/pgp-signature, 242 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Using GnuPG with Icedove - http://www.enigmail.net/ iEYEAREDAAYFAlN2UacACgkQsPwMloDjyo9MlgCfUfgehN/vdL8C0GgFYixybi3F lG0An3EVssNYIQp6JYp2sVQEmiLjU38L =OHoa -----END PGP SIGNATURE-----