summaryrefslogtreecommitdiff
path: root/src/cxml.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-05-12 00:25:19 +0100
committerCarl Hetherington <cth@carlh.net>2014-05-12 00:25:19 +0100
commit89939e2862b61eedb4ababb22d3ae17fae179de8 (patch)
tree4f171ae5023d5666b3642c66f5b8a929b9530ef2 /src/cxml.cc
parentfb0822d3719a4668b58e8959232a04ddccd9a521 (diff)
Remove use of boost::lexical_cast as it appears to be difficult to
make it use the standard "C" locale for both decimal and thousands separators. Instead, use std::stringstream which it appears will use "C" for both decimal and thousands after s.imbue (std::locale::classic ());
Diffstat (limited to 'src/cxml.cc')
-rw-r--r--src/cxml.cc19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/cxml.cc b/src/cxml.cc
index a955b91..68ad109 100644
--- a/src/cxml.cc
+++ b/src/cxml.cc
@@ -1,3 +1,22 @@
+/*
+ Copyright (C) 2012-2014 Carl Hetherington <cth@carlh.net>
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+*/
+
#include <sstream>
#include <iostream>
#include <boost/lexical_cast.hpp>