mesos-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bernd Mathiske" <be...@mesosphere.io>
Subject Review Request 30792: Additonal use case for "auto" in C++ style guide: shared pointer creation.
Date Mon, 09 Feb 2015 10:30:28 GMT

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/30792/
-----------------------------------------------------------

Review request for mesos.


Repository: mesos


Description
-------

Explicitly allows auto declarations for shared pointer creations. Example:

    auto nameList = make_shared<list<string>>();

Here the type on the left is already explicitly stated on the right. This replaces

    shared_ptr<list<string>> nameList = make_shared<list<string>>();

where we needlessly write the same type twice.


Diffs
-----

  docs/mesos-c++-style-guide.md b24fe4b64a2577060f66ef49ae8b5d4a9d94167c 

Diff: https://reviews.apache.org/r/30792/diff/


Testing
-------

None. This is doc text only.


Thanks,

Bernd Mathiske


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message