summaryrefslogtreecommitdiff
path: root/tests/test_track_obj.cc
Commit message (Collapse)AuthorAgeFilesLines
* C++11: Change all typedefs to using.Murray Cumming2016-03-071-2/+2
|
* C++11: Replace sigc::ref() with std::ref().Murray Cumming2016-03-071-2/+2
| | | | It seems to be remarkably similar.
* C++11: Use auto.Murray Cumming2015-07-181-2/+2
| | | | | Trying to avoid using auto where its a specific type that we are trying to test for.
* C++11: Use of nullptr instead of 0.Murray Cumming2015-07-181-3/+3
|
* C++11: Avoid the need for SIGC_FUNCTORS_DEDUCE_RESULT_TYPE_WITH_DECLTYPEKjell Ahlstedt2015-07-141-15/+3
| | | | | | | | | | | | | | | | | | * sigc++/adaptors/lambda/macros/base.h.m4: * sigc++/adaptors/lambda/macros/group.h.m4: * sigc++/adaptors/macros/track_obj.h.m4: * sigc++/macros/signal.h.m4: Remove all talk about SIGC_FUNCTORS_DEDUCE_RESULT_TYPE_WITH_DECLTYPE. * sigc++/functors/slot_base.h: Mentioned that SIGC_FUNCTORS_DEDUCE_RESULT_TYPE_WITH_DECLTYPE is not needed any more. * tests/test_cpp11_lambda.cc: * tests/test_track_obj.cc: Remove calls to SIGC_FUNCTORS_DEDUCE_RESULT_TYPE_WITH_DECLTYPE and tests for C++11 capability. * sigc++/functors/macros/functor_trait.h.m4: Add class can_deduce_result_type_with_decltype<>. Use it as default value for the new template parameter I_can_use_decltype in struct functor_trait<>. Bug #672555. Murray Cumming made the changes of all files except functor_trait.h.m4.
* Tests: Enable C++11 lambda expressions with MS Visual Studio 2012 and laterRyan Beasley2014-07-291-1/+1
| | | | | | * tests/test_cpp11_lambda.cc: * tests/test_track_obj.cc: Compile C++11 lambda expressions if _MSC_VER >= 1700. Bug #733752.
* Fix 'make check' with clang++ and --enable-warnings=fatalKjell Ahlstedt2014-07-141-12/+15
| | | | | | | | * tests/test_cpp11_lambda.cc: * tests/test_deduce_result_type.cc: * tests/test_track_obj.cc: Don't define functions which are not used. The clang++ compiler considers unused functions an error, when libsigc++ is configured with --enable-warnings=fatal. Bug #724496.
* Add track_obj() and test_track_obj.Kjell Ahlstedt2013-02-261-0/+230
* sigc++/.gitignore: Add adaptors/track_obj.h. * sigc++/adaptors/adaptors.h: Add sigc++/adaptors/track_obj.h. * sigc++/adaptors/lambda/macros/group.h.m4: * sigc++/adaptors/macros/adaptor_trait.h.m4: Mention track_obj() in the documentation. * sigc++/adaptors/macros/track_obj.h.m4: New file. * sigc++/filelist.am: Add track_obj.h.m4 and track_obj.h. * tests/.gitignore: * tests/Makefile.am: Add test_track_obj. * tests/test_cpp11_lambda.cc: Use track_obj() to test auto-disconnection. * tests/test_track_obj.cc: New test case. Bug #672555.