[PPL-devel] [GIT] ppl/ppl(master): Avoid useless namespace closing and reopening.

Enea Zaffanella zaffanella at cs.unipr.it
Wed Jun 27 11:05:34 CEST 2012


Module: ppl/ppl
Branch: master
Commit: 3270894625ee282880216cdf5bce523a8d38ba85
URL:    http://www.cs.unipr.it/git/gitweb.cgi?p=ppl/ppl.git;a=commit;h=3270894625ee282880216cdf5bce523a8d38ba85

Author: Enea Zaffanella <zaffanella at cs.unipr.it>
Date:   Wed Jun 27 11:04:09 2012 +0200

Avoid useless namespace closing and reopening.

---

 src/Sparse_Row.defs.hh |   11 ++---------
 1 files changed, 2 insertions(+), 9 deletions(-)

diff --git a/src/Sparse_Row.defs.hh b/src/Sparse_Row.defs.hh
index 9dde180..a089627 100644
--- a/src/Sparse_Row.defs.hh
+++ b/src/Sparse_Row.defs.hh
@@ -30,8 +30,6 @@ site: http://bugseng.com/products/ppl/ . */
 #include "Coefficient.defs.hh"
 #include "Dense_Row.types.hh"
 
-namespace Parma_Polyhedra_Library {
-
 #ifdef PPL_DOXYGEN_INCLUDE_IMPLEMENTATION_DETAILS
 //! A finite sparse sequence of coefficients.
 /*! \ingroup PPL_CXX_interface
@@ -57,7 +55,7 @@ namespace Parma_Polyhedra_Library {
   \see CO_Tree
 */
 #endif // defined(PPL_DOXYGEN_INCLUDE_IMPLEMENTATION_DETAILS)
-class Sparse_Row {
+class Parma_Polyhedra_Library::Sparse_Row {
 
 public:
 
@@ -757,7 +755,7 @@ public:
                       Coefficient_traits::const_reference c1,
                       Coefficient_traits::const_reference c2,
                       dimension_type start, dimension_type end);
-  
+
   PPL_OUTPUT_DECLARATIONS
 
   //! Loads the row from an ASCII representation generated using ascii_dump().
@@ -824,7 +822,6 @@ private:
   dimension_type size_;
 };
 
-} // namespace Parma_Polyhedra_Library
 
 namespace Parma_Polyhedra_Library {
 
@@ -841,10 +838,6 @@ void swap(Parma_Polyhedra_Library::Sparse_Row& x,
 void swap(Parma_Polyhedra_Library::Dense_Row& x,
           Parma_Polyhedra_Library::Sparse_Row& y);
 
-} // namespace std
-
-namespace Parma_Polyhedra_Library {
-
 #ifdef PPL_DOXYGEN_INCLUDE_IMPLEMENTATION_DETAILS
 //! Returns <CODE>true</CODE> if and only if \p x and \p y are equal.
 /*! \relates Sparse_Row */




More information about the PPL-devel mailing list