Commit 8a2074d6 authored by Valerio Bertone's avatar Valerio Bertone
Browse files

Adjusting formatting for allowing compatibility with LHAPDF

parent bedefa22
......@@ -13,6 +13,8 @@
#include <limits>
#include <sstream>
#include <string>
#include <clocale>
#include <iostream>
#include "StringUtils.h"
......@@ -27,6 +29,15 @@ public:
Formatter() {
// use to print full precision double
m_stream << std::setprecision(std::numeric_limits<double>::digits10);
//c
std::setlocale(LC_ALL, "en_US.UTF-8");
//c++ (global)
std::locale::global(std::locale("en_US.UTF-8"));
//c++ (cout)
std::cout.imbue(std::locale("en_US.UTF-8"));
}
~Formatter() {
......
#include "../../../include/ElementaryUtils/string_utils/StringUtils.h"
#include <algorithm> // pour transform #include <cctype> #include <cstdlib> #include <cctype> #include <cctype> #include <cctype> #include <cctype> #include <cctype> #include <cctype> #include <cctype> #include <cctype> #include <cctype> #include <iterator> #include <cctype> #include <iterator> #include <cctype> #include <iterator> #include "../../../include/ElementaryUtils/logger/CustomException.h" #include <cctype> #include <iterator>
#include <algorithm> // pour transform
#include <cctype>
#include <cstdlib>
#include <iterator>
#include "../../../include/ElementaryUtils/logger/CustomException.h"
#include "../../../include/ElementaryUtils/logger/CustomException.h"
#include "../../../include/ElementaryUtils/logger/LoggerManager.h"
#include "../../../include/ElementaryUtils/string_utils/Formatter.h"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment