diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-02-14 23:11:50 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-02-14 23:11:50 +0000 |
| commit | c009f6795d133e8dfe0662042e0b3c90dde0e25b (patch) | |
| tree | 7f9f67aa62a958a4097636dd54c02ab52b5e3947 /src/raw_convert.h | |
| parent | 4e38f823324b020761a12ab5d479155d6a43a4d2 (diff) | |
Limit values that we use for <ScreenAspectRatio> tags in Interop
CPLs to the list allowed by the standard.
Diffstat (limited to 'src/raw_convert.h')
| -rw-r--r-- | src/raw_convert.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/raw_convert.h b/src/raw_convert.h index 90737c0c..142763f2 100644 --- a/src/raw_convert.h +++ b/src/raw_convert.h @@ -30,11 +30,14 @@ namespace dcp { */ template <typename P, typename Q> P -raw_convert (Q v, int precision = 16) +raw_convert (Q v, int precision = 16, bool fixed = false) { std::stringstream s; s.imbue (std::locale::classic ()); s << std::setprecision (precision); + if (fixed) { + s << std::fixed; + } s << v; P r; s >> r; |
