Opened 13 years ago
Closed 13 years ago
#3588 closed Bugs (duplicate)
boost\io\ios_state.hpp(256) : warning C4512: 'boost::io::basic_ios_locale_saver<Ch>' : assignment operator could not be generated
| Reported by: | Owned by: | Daryle Walker | |
|---|---|---|---|
| Milestone: | Boost 1.41.0 | Component: | io |
| Version: | Boost 1.40.0 | Severity: | Problem |
| Keywords: | Cc: |
Description
This is simple issue.
Here is a patch:
Index: io/ios_state.hpp =================================================================== --- io/ios_state.hpp (revision 66) +++ io/ios_state.hpp (working copy) @@ -226,6 +226,9 @@
{ s_save_.fill( a_save_ ); }
private:
+ typedef basic_ios_fill_saver this_type; + this_type& operator=(this_type const&); +
state_type & s_save_; aspect_type const a_save_;
};
@@ -251,6 +254,9 @@
{ s_save_.imbue( a_save_ ); }
private:
+ typedef basic_ios_locale_saver this_type; + this_type& operator=(this_type const&); +
state_type & s_save_; aspect_type const a_save_;
};
Attachments (1)
Change History (5)
by , 13 years ago
| Attachment: | boost_io.patch added |
|---|
follow-up: 3 comment:1 by , 13 years ago
Are you seeing these warnings on Trunk, or just with the current release?
The fix for #1414 fixed a load of warnings in ios_state.hpp, but that doesn't seem to have been merged to release. I'll mention it on the mailing list.
comment:2 by , 13 years ago
| Component: | None → io |
|---|---|
| Owner: | set to |
comment:3 by , 13 years ago
Hi,
Are you seeing these warnings on Trunk, or just with the current release?
Boost 1.40. In the trunk the code is fixed, sorry for the mess.
The fix for #1414 fixed a load of warnings in ios_state.hpp, but that doesn't seem to have been merged to release. I'll mention it on the mailing list.
Hmm... it is strange ... that ticked was for version 1.36 now we have 1.40 :-).
Best regards,
comment:4 by , 13 years ago
| Resolution: | → duplicate |
|---|---|
| Status: | new → closed |

Patch for the problem