Date: Sat, 6 Jan 2018 14:18:59 +0000 (UTC) From: Jan Beich <jbeich@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r458273 - head/devel/libsigc++12/files Message-ID: <201801061418.w06EIxu5074454@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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();
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201801061418.w06EIxu5074454>