Re: std::auto_ptr deprecation warning in libstdc++ 5.1
- From: Marcin Kolny <marcin kolny gmail com>
- To: Andrew Potter <agpotter gmail com>
- Cc: "gtkmm-list gnome org" <gtkmm-list gnome org>
- Subject: Re: std::auto_ptr deprecation warning in libstdc++ 5.1
- Date: Mon, 4 May 2015 00:15:27 +0200
It's actually not a solution of your problem, because you have to change compilation flags,
but you can use following ifdefs block:
#if __cplusplus < 201103L
// use auto_ptr
#else
// use unique_ptr
#endif
and compile glibmm with -std=c++11 flag. As I said, it's not a solution, but just a workaround.
I believe, that breaking glibmm's ABI/API is inevitable anyway, so maybe
time has come to
enable c++11 flag by default and use c++11 features in glibmm?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]