Opened 9 years ago

Closed 9 years ago

Last modified 7 years ago

#8710 closed Bugs (wontfix)

auto_ptr warnings when building boost

Reported by: Johan Lundberg <lundberj@…> Owned by: Artyom Beilis
Milestone: To Be Determined Component: locale
Version: Boost 1.54.0 Severity: Cosmetic
Keywords: Cc:

Description

When compiling boost1.54 beta using gcc 4.7.2 in C++11, several warnings about the deprecated auto_ptr shows up.

This is truly a cosmetic (for now) but since there are almost no other warnings it would be nice to fix.

examples: libs/locale/src/shared/localization_backend.cpp:54 libs/locale/src/shared/mo_lambda.cpp:42 libs/locale/src/util/codecvt_converter.cpp:194

I used ./b2 --prefix=/tmp/boostbuild/ variant=debug threading=multi link=shared runtime-link=shared toolset=gcc cxxflags=-std=gnu++11

Change History (5)

comment:1 by viboes, 9 years ago

Component: Nonelocale
Owner: set to Artyom Beilis

comment:2 by Artyom Beilis, 9 years ago

Resolution: wontfix
Status: newclosed

The boost.locale supports non C++11 compilers as well and only auto_ptr supports the required move semantics.

So it would not be fixed

comment:3 by anonymous, 7 years ago

Is there some way in which these warnings specifically could be suppressed?

comment:4 by anonymous, 7 years ago

hi

comment:5 by anonymous, 7 years ago

it's said c++11 provided unique_ptr to replace auto_ptr, will that be fixed on a separate branch? http://stackoverflow.com/questions/3697686/why-is-auto-ptr-being-deprecated

Note: See TracTickets for help on using tickets.