svn commit: r458273 - head/devel/libsigc++12/files
Jan Beich
jbeich at FreeBSD.org
Sat Jan 6 14:19:01 UTC 2018
Author: jbeich
Date: Sat Jan 6 14:18:59 2018
New Revision: 458273
URL: https://svnweb.freebsd.org/changeset/ports/458273
Log:
devel/libsigc++12: unbreak build with Clang 6 (C++14 by default)
bind_test.cc:24:17: error: no viable conversion from '__bind<SigC::Slot1<void, int>, int>' to 'Slot0<void>'
Slot0<void> s=bind(slot(&foo),1);
^ ~~~~~~~~~~~~~~~~~~
../sigc++/slot.h:207:7: note: candidate constructor not viable: no known conversion from '__bind<SigC::Slot1<void, int>, int>' to 'const SigC::Slot0<void> &' for 1st argument
Slot0(const Slot0& s)
^
../sigc++/slot.h:210:7: note: candidate constructor not viable: no known conversion from '__bind<SigC::Slot1<void, int>, int>' to 'SigC::SlotNode *' for 1st argument
Slot0(SlotNode* node)
^
../sigc++/slot.h:213:7: note: candidate constructor not viable: no known conversion from '__bind<SigC::Slot1<void, int>, int>' to 'SigC::Slot0<void>::Callback' (aka 'void (*)()') for 1st argument
Slot0(Callback callback)
^
Reported by: antoine (via bug 224669)
Added:
head/devel/libsigc++12/files/
head/devel/libsigc++12/files/patch-tests_bind__test.cc (contents, props changed)
Added: head/devel/libsigc++12/files/patch-tests_bind__test.cc
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/libsigc++12/files/patch-tests_bind__test.cc Sat Jan 6 14:18:59 2018 (r458273)
@@ -0,0 +1,30 @@
+libc++ doesn't like "using namespace std" in C++11
+
+bind_test.cc:24:17: error: no viable conversion from '__bind<SigC::Slot1<void, int>, int>' to 'Slot0<void>'
+ Slot0<void> s=bind(slot(&foo),1);
+ ^ ~~~~~~~~~~~~~~~~~~
+../sigc++/slot.h:207:7: note: candidate constructor not viable: no known conversion from '__bind<SigC::Slot1<void, int>, int>' to 'const SigC::Slot0<void> &' for 1st argument
+ Slot0(const Slot0& s)
+ ^
+../sigc++/slot.h:210:7: note: candidate constructor not viable: no known conversion from '__bind<SigC::Slot1<void, int>, int>' to 'SigC::SlotNode *' for 1st argument
+ Slot0(SlotNode* node)
+ ^
+../sigc++/slot.h:213:7: note: candidate constructor not viable: no known conversion from '__bind<SigC::Slot1<void, int>, int>' to 'SigC::Slot0<void>::Callback' (aka 'void (*)()') for 1st argument
+ Slot0(Callback callback)
+ ^
+
+--- tests/bind_test.cc.orig 2002-10-11 12:42:15 UTC
++++ tests/bind_test.cc
+@@ -21,10 +21,10 @@ void foo2(A) { cout << "foo2(A)" <<endl; result+=3;}
+ int main()
+ {
+ cout << ">>test 1"<<endl;
+- Slot0<void> s=bind(slot(&foo),1);
++ Slot0<void> s=SigC::bind(slot(&foo),1);
+ s();
+ cout << ">>test 2"<<endl;
+- s=bind(slot(&foo2),1);
++ s=SigC::bind(slot(&foo2),1);
+ s();
+ cout << ">>test 3"<<endl;
+ s.clear();
More information about the svn-ports-all
mailing list