forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
app-pda/barry: Build with -std=c++11 for libsigc++ compatibility (bug…
… #566910). Package-Manager: portage-2.2.27
- Loading branch information
Showing
2 changed files
with
31 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
With -std=c++-11 shared_ptr is available in the standard library so pulling in | ||
the std::tr1 namespace creates an ambiguous reference. Simple fix is to stop | ||
doing that but isn't backwards compatible. We don't care in Gentoo since we'll | ||
always be building barry with -std=c++11 due to libsigc++ abi compatibility. | ||
|
||
--- a/tools/bio.cc | ||
+++ b/tools/bio.cc | ||
@@ -42,7 +42,6 @@ | ||
#include "i18n.h" | ||
|
||
using namespace std; | ||
-using namespace std::tr1; | ||
using namespace Barry; | ||
|
||
// keeping a record of all the -i device / -o device pin numbers, so | ||
--- a/tools/btool.cc | ||
+++ b/tools/btool.cc | ||
@@ -59,7 +59,6 @@ | ||
#include "barrygetopt.h" | ||
|
||
using namespace std; | ||
-using namespace std::tr1; | ||
using namespace Barry; | ||
|
||
std::map<std::string, std::string> SortKeys; |