aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-02-06 09:27:33 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-02-06 09:27:33 +0000
commit12a45c8464d863371428c0b02143d16da38d7ba3 (patch)
treeef0495d917eb153ad0189317bf946f2879aa1513
parentee080eee0a7f575956b9847ec82ccefb4c892a32 (diff)
downloadpaludis-12a45c8464d863371428c0b02143d16da38d7ba3.tar.gz
paludis-12a45c8464d863371428c0b02143d16da38d7ba3.tar.xz
Update
-rw-r--r--doc/doc_coding_standards.doxygen6
1 files changed, 1 insertions, 5 deletions
diff --git a/doc/doc_coding_standards.doxygen b/doc/doc_coding_standards.doxygen
index 5003023..440d1df 100644
--- a/doc/doc_coding_standards.doxygen
+++ b/doc/doc_coding_standards.doxygen
@@ -122,7 +122,7 @@ instead of a manual loop (\ref EffSTL item 43).
Try to avoid returning raw pointer types from raw interfaces, especially if the
programmer is expected to deallocate them manually. Make liberal use of
-<code>paludis::CountedPtr</code> instead -- it's low overhead and a lot less
+<code>std::tr1::shared_ptr</code> instead -- it's low overhead and a lot less
prone to subtle screwups. See \ref EffCpp item 18.
Pass object parameters by const reference rather than pointer to const unless
@@ -156,10 +156,6 @@ swap methods. Use these over <code>std::copy</code>. See \ref EffSTL item
Don't use <code>vector&lt;bool&gt;</code>. It's just not worth it. See
\ref EffSTL item 18.
-Although some compilers will let you get away with <code>std::make_pair("foo",
-"bar")</code>, some won't. Strictly speaking this violates the standard.
-Use <code>std::make_pair(std::string("foo"), std::string("bar"))</code> instead.
-
\section CodingStandardsCasts Casts
<code>dynamic_cast</code> is banned. It's slow (\ref EffCpp item 27) and a sign