lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [4961] Rearrange


From: Greg Chicares
Subject: [lmi-commits] [4961] Rearrange
Date: Tue, 25 May 2010 21:17:56 +0000

Revision: 4961
          http://svn.sv.gnu.org/viewvc/?view=rev&root=lmi&revision=4961
Author:   chicares
Date:     2010-05-25 21:17:56 +0000 (Tue, 25 May 2010)
Log Message:
-----------
Rearrange

Modified Paths:
--------------
    lmi/trunk/stratified_charges.cpp

Modified: lmi/trunk/stratified_charges.cpp
===================================================================
--- lmi/trunk/stratified_charges.cpp    2010-05-25 14:44:20 UTC (rev 4960)
+++ lmi/trunk/stratified_charges.cpp    2010-05-25 21:17:56 UTC (rev 4961)
@@ -44,6 +44,23 @@
 #include <algorithm>
 #include <cfloat>                 // DBL_MAX
 
+namespace xml_serialize
+{
+    template<>
+    struct xml_io<stratified_entity>
+    {
+        static void to_xml(xml::element& e, stratified_entity const& t)
+        {
+            t.write(e);
+        }
+
+        static void from_xml(xml::element const& t, stratified_entity& e)
+        {
+            e.read(t);
+        }
+    };
+} // namespace xml_serialize
+
 /// Specialize value_cast<>() to throw an exception.
 ///
 /// This is required by
@@ -514,23 +531,6 @@
         }
 }
 
-namespace xml_serialize
-{
-    template<>
-    struct xml_io<stratified_entity>
-    {
-        static void to_xml(xml::element& e, stratified_entity const& t)
-        {
-            t.write(e);
-        }
-
-        static void from_xml(xml::element const& t, stratified_entity& e)
-        {
-            e.read(t);
-        }
-    };
-} // namespace xml_serialize
-
 void stratified_charges::read(std::string const& filename)
 {
     if(access(filename.c_str(), R_OK))




reply via email to

[Prev in Thread] Current Thread [Next in Thread]