Comments (3)
I think the proper solution here is likely the following on lines 129, 130:
else if(way != ::std::ios_base::cur || (which & ::std::ios_base::in) )
// (altering in&out is only supported if way is beg or end, not cur)
Similar to the logic on lines 110, 111:
else if(way != ::std::ios_base::cur || (which & ::std::ios_base::out) )
// (altering in&out is only supported if way is beg or end, not cur)
from format.
@PHackett any thoughts on this approach?
from format.
This was spotted by a static code analyser in an old version of boost - it was fixed in a later version.
I suggest that you look at newer versions of the library to see what fix was applied.
from format.
Related Issues (20)
- Add a test tool that will allow comparison between releases to identify regressions
- Parse Microsoft extension argument size modifiers (I, I32, I64)
- boost format operator % won't accept dereference of volatile HOT 1
- Failures when build boost with MSVC+ /permissive- HOT 3
- Release Notes for Boost.Format release 1.67.0
- Enhancement: format (u)int8 types correctly to number, if formatted with %d, &i, %u HOT 2
- Allow the use of std::optional in C++2017 HOT 3
- Direct use of `Allocator::allocate` is deprecated in C++17 HOT 5
- zero padding does not work in combination with plus sign
- basic_format = operator does not swap locale
- Encoding error in generated page
- Misspelled config macro HOT 1
- Support std::variant HOT 1
- "sign=space & pad_0s_until_width & alignment=right/internal/center" do not work together ("sign=space" is ignored)
- Support thousands separator
- Allow to compile with "-Werror=suggest-override"
- Wdeprecated-copy warnings from group.hpp.
- Modular Boost C++ Libraries Request HOT 1
- Add a release note for 1.86.0 about the C++11 language level requirement HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from format.