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: Seweryn Habdank-Wojewodzki <seweryn@…> 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)

boost_io.patch (636 bytes ) - added by Seweryn Habdank-Wojewodzki <seweryn@…> 13 years ago.
Patch for the problem

Download all attachments as: .zip

Change History (5)

by Seweryn Habdank-Wojewodzki <seweryn@…>, 13 years ago

Attachment: boost_io.patch added

Patch for the problem

comment:1 by rwebb <richard.webb@…>, 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 Steven Watanabe, 13 years ago

Component: Noneio
Owner: set to Daryle Walker

in reply to:  1 comment:3 by Seweryn Habdank-Wojewodzki <seweryn@…>, 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 Daniel James, 13 years ago

Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.