diff options
author | Craig Earls <enderw88@gmail.com> | 2014-03-06 06:54:16 -0700 |
---|---|---|
committer | Craig Earls <enderw88@gmail.com> | 2014-03-06 06:54:16 -0700 |
commit | 6eeefecf01371428f98123f28d2541d0c09d79f6 (patch) | |
tree | b2484176786e8296d06d5023781628cc4e20f338 /src/pstream.h | |
parent | 0b4ce5698622eb361e702825b187ebfceb970789 (diff) | |
parent | f2ec5bdb19887b74b2672e6bdeee9799c0ea80a8 (diff) | |
download | fork-ledger-6eeefecf01371428f98123f28d2541d0c09d79f6.tar.gz fork-ledger-6eeefecf01371428f98123f28d2541d0c09d79f6.tar.bz2 fork-ledger-6eeefecf01371428f98123f28d2541d0c09d79f6.zip |
Merge commit 'f2ec5bdb19887b74b2672e6bdeee9799c0ea80a8'
Diffstat (limited to 'src/pstream.h')
-rw-r--r-- | src/pstream.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/pstream.h b/src/pstream.h index bcbf6755..ed314068 100644 --- a/src/pstream.h +++ b/src/pstream.h @@ -83,7 +83,10 @@ class ptristream : public std::istream virtual pos_type seekoff(off_type off, ios_base::seekdir way, ios_base::openmode) { - switch (way) { + // cast to avoid gcc '-Wswitch' warning + // as ios_base::beg/cur/end are not necesssarily values of 'way' enum type ios_base::seekdir + // based on https://svn.boost.org/trac/boost/ticket/7644 + switch (static_cast<int>(way)) { case std::ios::cur: setg(ptr, gptr()+off, ptr+len); break; |