summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Increase versionlibsigc++-2.1.1Murray Cumming2007-08-143-4/+34
| | | | svn path=/trunk/; revision=286
* Removed this header.Murray Cumming2007-08-1417-619/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-08-14 Murray Cumming <murrayc@murrayc.com> * sigc++/Makefile.am: * sigc++/compatibility.h: Removed this header. * sigc++/bind.h: * sigc++/bind_return.h: * sigc++/connection.h: * sigc++/macros/class_slot.h.m4: * sigc++/macros/hide.h.m4: * sigc++/macros/method_slot.h.m4: * sigc++/macros/object_slot.h.m4: * sigc++/macros/retype.h.m4: * sigc++/macros/signal.h.m4: * sigc++/macros/slot.h.m4: * sigc++/object.h: * sigc++/retype_return.h: Removed deprecated compatibility API, to probably fix the build with some compilers, such as some versions of the Sun Forte C++ CC compiler. This API has been deprecated April 2004, and is not widely used, so it seems safe to do this now. * tests/Makefile.am: * tests/test_compatibility.cc: Removed this test. svn path=/trunk/; revision=285
* slot_iterator_buf, slot_reverse_iterator_buf: Added typedefs forMichael Elkstrand2007-07-284-1/+69
| | | | | | | | | | | | | | | 2007-07-28 Michael Elkstrand <michael@elehack.net> * sigc++/macros/signal.h.m4: slot_iterator_buf, slot_reverse_iterator_buf: Added typedefs for value_type, reference, and pointer, so that these iterators are more like standard C++ iterators, so they can be used with standard C++ algorithms. * tests/Makefile.am: * tests/test_accum_iter.cc: Added a test for this. Bug #417926. svn path=/trunk/; revision=284
* Wholly replace this script with a critter from one of my personalDaniel Elstner2006-11-142-23/+110
| | | | | | | | | | * autogen.sh: Wholly replace this script with a critter from one of my personal projects, with slight modifications. This one does some sophisticated stuff like probing version numbers of available automake and aclocal executables, in order to choose the right one accordingly. All this is necessary to make the build system work robustly in custom environments such as Maemo where automake-1.9 doesn't come preinstalled.
* Revert the previous changes, because none is used in the exported symbolMurray Cumming2006-06-207-39/+39
| | | | | | | | | | | | | 2006-06-20 Murray Cumming <murrayc@murrayc.com> * sigc++/adaptors/macros/bind.h.m4: * sigc++/adaptors/macros/retype.h.m4: * sigc++/functors/macros/functor_trait.h.m4: * sigc++/functors/macros/slot.h.m4: * sigc++/macros/retype.h.m4: * sigc++/macros/signal.h.m4: Revert the previous changes, because none is used in the exported symbol names from gtkmm, so this would break the ABI of gtkmm.
* Renamed 'nil' to 'none' to allow an Objective-C++ compiler to compile theRégis Duchesne2006-06-067-28/+50
| | | | | | | | | | | | | 2006-05-26 Régis Duchesne <hpreg@vmware.com> * sigc++/adaptors/macros/bind.h.m4: * sigc++/adaptors/macros/retype.h.m4: * sigc++/functors/macros/functor_trait.h.m4: * sigc++/functors/macros/slot.h.m4: * sigc++/macros/retype.h.m4: * sigc++/macros/signal.h.m4: Renamed 'nil' to 'none' to allow an Objective-C++ compiler to compile the library header files.
* Make remaining reverse_iterator_buf operator--() methods return byMurray Cumming2005-12-212-2/+9
| | | | | | | | | 2005-12-21 Murray Cumming <murrayc@murrayc.com> * sigc++/macros/signal.h.m4: Make remaining reverse_iterator_buf operator--() methods return by reference, like the operator++() methods. Bug #304402 from John Profic.
* Make all operator--() methods return by reference, like the operator++()Murray Cumming2005-12-202-4/+10
| | | | | | | | 2005-12-20 Murray Cumming <murrayc@murrayc.com> * sigc++/macros/signal.h.m4: Make all operator--() methods return by reference, like the operator++() methods. Bug #304402 from John Profic.
* Fix compilation problem in the last patch.John Profic2005-12-142-1/+6
| | | | | | | 2005-12-14 John Profic <profic@kursknet.ru> * sigc++/macros/signal.h.m4: Fix compilation problem in the last patch.
* Added emit_reverse().John Profic2005-12-142-0/+248
| | | | | | 2005-12-14 John Profic <profic@kursknet.ru> * sigc++/macros/signal.h.m4: Added emit_reverse().
* mark branch in ChangeLogMurray Cumming2005-12-141-0/+3
|
* slot_base::disconnect(): Set call_ to 0, to invalidate the slot, even ifMurray Cumming2005-12-012-0/+13
| | | | | | | | | | | | | 2005-12-01 Murray Cumming <murrayc@murrayc.com> * sigc++/functors/slot_base.cc: slot_base::disconnect(): Set call_ to 0, to invalidate the slot, even if parent_ is 0. I think parent_ is, for instance, a signal, but disconnect should still work on a slot that is not connected to a signal, because a slot can be invoked directly. Fixes bug #311057 from James Lin.
* Added test case from bug #311057.Murray Cumming2005-12-013-0/+45
| | | | | | | | 2005-12-01 Murray Cumming <murrayc@murrayc.com> * tests/Makefile.am: * tests/test_slot_disconnect.cc: Added test case from bug #311057.
* Make member exception_catch_functor<T_functor, T_catcher, void>::catcher_Philipp Berndt2005-11-162-1/+7
| | | | | | | | | | 2005-11-16 Philipp Berndt <philipp.berndt@gmx.net> * sigc++/adaptors/macros/exception_catch.h.m4: Make member exception_catch_functor<T_functor, T_catcher, void>::catcher_ public so that it can be accessed by visit_each() (bug fixed for generalization on 2004-11-06) ~
* Increased version. Forgot to commit this a few days ago.libsigc++-2.0.16Murray Cumming2005-08-173-1/+9
|
* Updated the documentation for temp_slot_list as requested in bug #303896.Neal E. Coombes2005-08-012-6/+12
| | | | | | | 2005-08-01 Neal E. Coombes <nealc@trdlnk.com> * sigc++/signal_base.h: Updated the documentation for temp_slot_list as requested in bug #303896.
* Added missing ) in call to sun_forte_workaround(), fixing build on SUNMurray Cumming2005-08-012-1/+7
| | | | | | | | 2005-07-13 Murray Cumming <murrayc@murrayc.com> * sigc++/adaptors/hide.h.m4: Added missing ) in call to sun_forte_workaround(), fixing build on SUN Forte 5.5. Bug #312020.
* Renamed ::sigc::is_base_and_derived::internal toBruno Martinez2005-08-012-3/+11
| | | | | | | | | | 2005-08-19 Bruno Martinez <brunom@fing.edu.uy> * sigc++/type_traits.h: Renamed ::sigc::is_base_and_derived::internal to ::sigc::is_base_and_derived::internal_class in order to avoid conflict with namespace internal.
* fix typo.Murray Cumming2005-07-131-1/+1
|
* Correct mentions of 1.2 stuff instead of 2.0. Patch in bug #310213 fromMurray Cumming2005-07-132-3/+9
| | | | | | | | 2005-07-13 Murray Cumming <murrayc@murrayc.com> * docs/manual/libsigc_manual.xml: Correct mentions of 1.2 stuff instead of 2.0. Patch in bug #310213 from pebble.org.uk.
* Fixed typo found by Antonio Coralles.Murray Cumming2005-07-132-1/+6
| | | | | | | 2005-07-13 Murray Cumming <murrayc@murrayc.com> * docs/manual/libsigc_manual.xml: Fixed typo found by Antonio Coralles.
* Did the same (see last commit) for slot_const_iterator andMurray Cumming2005-07-092-6/+12
| | | | | | | | 2005-07-09 Murray Cumming <murrayc@murrayc.com> * sigc++/macros/signal.h.m4: Did the same (see last commit) for slot_const_iterator and slot_iterator_buf.
* slot_iterator: operator--() now returns value, not reference, likeMurray Cumming2005-07-092-2/+10
| | | | | | | | | | 2005-07-09 Murray Cumming <murrayc@murrayc.com> * sigc++/macros/signal.h.m4: slot_iterator: operator--() now returns value, not reference, like operator++() already did. This caused crashes when using --no-inline with g++. Bug #308651 by Michael Andres.
* Increased versionlibsigc++-2.0.15Murray Cumming2005-07-043-1/+13
|
* Add a setter typedef to compose*_functor and use it instead of thePhilip Langdale2005-07-042-2/+12
| | | | | | | | | | 2005-07-04 Philip Langdale <plangdale@vmware.com> * sigc++/adaptors/macros/compose.h.m4: Add a setter typedef to compose*_functor and use it instead of the (incorrect) getter typedef in the compose* specialization of visit_each<>(). This corrects the lifetime management of slots created with compose(). Bug #308433.
* Specify int return type for main(), to be more ISO C++ compliant. BugMarek Rouchal2005-06-132-1/+8
| | | | | | | 2005-06-13 Marek Rouchal <marek.rouchal@infineon.com> * tests/test_deduce_result_type.cc: Specify int return type for main(), to be more ISO C++ compliant. Bug #307478.
* sigc++/adaptors/lambda/macros/select.h.m4 Specify only a type (not aAndris Pavenis2005-06-134-9/+17
| | | | | | | | | 2005-06-11 Andris Pavenis <pavenis@latnet.lv> * sigc++/adaptors/lambda/macros/base.h.m4: * sigc++/adaptors/lambda/macros/select.h.m4 * sigc++/adaptors/macros/hide.h.m4: Specify only a type (not a parameter name) for unused member function parameters
* Add test for whether the compiler allows referencing to member functionsPaul Pogonyshev2005-06-125-12/+70
| | | | | | | | | | | | | | | | 2005-06-12 Paul Pogonyshev <pogonyshev@gmx.net> * configure.ac: * scripts/cxx.m4: * sigc++config.h.in: Add test for whether the compiler allows referencing to member functions of the class/structure being declared from a definition of a static member variable. Supposedly a generic solution for GCC 3.2 compilation problems. * sigc++/type_traits.h: Define SIGC_WRAP_IS_BASE_CLASS_ based on results of the above test. (struct is_base_and_derived): Wrap up is_base_class_() functions in an internal class if SIGC_WRAP_IS_BASE_CLASS_ is defined.
* Use CALL_SIZE instead of hard-coded 7s and 6s.Murray Cumming2005-06-104-8/+11
| | | | | | | | | 2005-06-10 Murray Cumming <murrayc@murrayc.com> * sigc++/adaptors/macros/bind.h.m4: * sigc++/functors/macros/slot.h.m4: * sigc++/macros/signal.h.m4: Use CALL_SIZE instead of hard-coded 7s and 6s.
* Increased versionlibsigc++-2.0.14Murray Cumming2005-06-103-1/+9
|
* Make the limit_derived_target::with_type inner class an outer class, toMurray Cumming2005-06-102-20/+29
| | | | | | | | | 2005-06-10 Murray Cumming <murrayc@murrayc.com> * sigc++/visit_each.h: Make the limit_derived_target::with_type inner class an outer class, to satisfy the SUN CC 5.7 compiler, though I think it is a compiler bug. Bug #302098 has the test case.
* Make the limit_derived_target::with_type inner class an outer class, toMurray Cumming2005-06-101-19/+24
| | | | | | | | | 2005-06-10 Murray Cumming <murrayc@murrayc.com> * sigc++/visit_each.h: Make the limit_derived_target::with_type inner class an outer class, to satisfy the SUN CC 5.7 compiler, though I think it is a compiler bug. Bug #302098 has the test case.
* Increased versionlibsigc++-2.0.13Murray Cumming2005-06-093-1/+19
|
* Removed missing call to missing macro from configure.inMurray Cumming2005-06-071-1/+0
|
* Specify the actual class when using test_int(), instead of the derivedMurray Cumming2005-06-072-1/+8
| | | | | | | | | 2005-06-07 Murray Cumming <murrayc@murrayc.com> * tests/test_compatibility.cc: Specify the actual class when using test_int(), instead of the derived class, to fix the build on SUN Forte CC 5.5. Patch from Friedemann Kleint in Bug #305647
* signal_emit::emit(): Use scope to ensure a certain order of destruction ofMurray Cumming2005-06-073-15/+32
| | | | | | | | 2005-06-07 Murray Cumming <murrayc@murrayc.com> * sigc++/macros/signal.h.m4: signal_emit::emit(): Use scope to ensure a certain order of destruction of the member variables, to avoid a leak on MSVC++. Patch by Andreas Ames in Bug #306249.
* Added comments about commenting-out SIGC_TYPEDEF_REDEFINE_ALLOWED whenMurray Cumming2005-06-072-2/+10
| | | | | | | | 2005-06-07 Murray Cumming <murrayc@murrayc.com> * sigc++/macros/signal.h.m4: Added comments about commenting-out SIGC_TYPEDEF_REDEFINE_ALLOWED when using SUN Forte CC 5.7, because I can not seem to create a test for it.
* Added check for the non-standard SUN Forte reverse_iterator<>, and usedMurray Cumming2005-06-076-1/+61
| | | | | | | | | | | | 2005-06-07 Murray Cumming <murrayc@murrayc.com> * configure.ac: * scripts/cxx_std.m4: * sigc++/macros/signal.h.m4: * sigc++config.h.in: Added check for the non-standard SUN Forte reverse_iterator<>, and used it. This is based on the same stuff in gtkmm.
* limit_derived_target(): Just some whitespace changes.Murray Cumming2005-06-072-4/+9
| | | | | | | 2005-06-07 Murray Cumming <murrayc@murrayc.com> * sigc++/visit_each.h: limit_derived_target(): Just some whitespace changes.
* limit_derived_target(): Just some whitespace changes.Murray Cumming2005-06-071-18/+42
| | | | | | | 2005-06-07 Murray Cumming <murrayc@murrayc.com> * sigc++/visit_each.h: limit_derived_target(): Just some whitespace changes.
* Modified temp_slot_list to be a temporary view into a slot list. InsteadNeal E. Coombes2005-06-042-7/+16
| | | | | | | | | | | 2005-05-16 Neal E. Coombes <nealc@trdlnk.com> * sigc++/signal_base.h: Modified temp_slot_list to be a temporary view into a slot list. Instead of emptying the original it now simply tacks a placeholder to the end of the original. It then uses this as it's 'end' iterator. This should allow for conscious recursiveness, as well as inserting a slot to any position in the slot list during emittion. See bug #303896.
* visit_each() template specializations: Mention the boolFriedemann Kleint2005-06-042-2/+10
| | | | | | | | | | 2005-06-04 Friedemann Kleint <kleint@bifab.de> * sigc++/macros/limit_reference.h.m4: visit_each() template specializations: Mention the bool I_derives_trackable template type, to fix the build on Solaris Forte 5.5.
* Increased versionlibsigc++-2.0.12Murray Cumming2005-05-103-1/+12
|
* Added missing includeMurray Cumming2005-05-101-0/+1
|
* New class that just stores a reference, and makes sure that if theRégis Duchesne2005-05-1016-232/+472
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-05-06 Régis Duchesne <hpreg@vmware.com> * sigc++/macros/limit_reference.h.m4 (added): * sigc++/Makefile.am: New class that just stores a reference, and makes sure that if the reference derives from trackable, then the trackable reference will be used instead of the derived reference in visit_each(). * sigc++/functors/macros/mem_fun.h.m4: Better fix for bug #169225 by Régis Duchesne and Christian Hammond, based on the new limit_reference class. * sigc++/adaptors/bound_argument.h (added): New class (built upon the new limit_reference class) that handles all 3 kinds of bound arguments: by value, by reference, and by constant reference. References are unwrapped in the bound_argument's constructor. * sigc++/adaptors/macros/bind.h.m4: Fix for bug #302327 by Régis Duchesne. Bound arguments now need to know whether they are passed by reference or not. So bind() now builds bind_functor instances using 'reference_wrapper<Foo>' types, instead of 'Foo &' types. The bind_functor code is modified to compensate. * sigc++/adaptors/macros/bind_return.h.m4: Similar fix for a similar bug (unfiled) with bound return arguments. * sigc++/reference_wrapper.h: * sigc++/type_traits.h: The reference_wrapper class is only used in bound_argument.h. Put correct but unused code under #if 0. * sigc++/adaptors/lambda/base.h: This file needs reference_wrapper.h, but was incorrectly relying on type_traits.h to include it. * tests/Makefile.am: * tests/test_virtualbase_delete.cc (deleted): * tests/test_virtualbase_delete_ref_param.cc (deleted): * tests/test_limit_reference.cc (added): Replaced test_virtualbase_delete*.cc with a simpler test_limit_reference.cc which checks for all 3 aspects of the same bug in one file. * tests/test_bind_ref.cc: Slots must use 'Foo &' types. We were lucky this broken usage worked before this change. The change in type_traits.h made this bug obvious, by preventing the code to compile. * tests/test_bind_return.cc: After my change, bind() and bind_return() must use 'reference_wrapper<Foo>' types. * tests/test_custom.cc: Made this test a no-op (so it does not perturb 'make check' on released versions of the library) and made it a template ready to be modified by hackers.
* Added missing fileMurray Cumming2005-05-041-0/+41
|
* Added test caseMurray Cumming2005-05-012-9/+14
|
* slot_base::slot_base(src): If the source slot_base has a null rep->call_,Murray Cumming2005-05-013-1/+28
| | | | | | | | | | | | 2005-05-01 Murray Cumming <murrayc@murrayc.com> * sigc++/functors/slot_base.cc: slot_base::slot_base(src): If the source slot_base has a null rep->call_, meaning that the slot is invalid, just return a default-constructed slot, to prevent the crash shown in tests/tests_copy_invalid_slot.cc. Bug #302515 by Régis Duchesne.
* Added testMurray Cumming2005-05-012-0/+30
|
* bound_*<>: Add a new is_base_and_derived<sigc::trackable> parameter to theMurray Cumming2005-05-013-5/+88
| | | | | | | | | | | | | | | | | | | 2005-05-01 Murray Cumming <murrayc@murrayc.com> * sigc++/functors/macros/mem_fun.h.m4: bound_*<>: Add a new is_base_and_derived<sigc::trackable> parameter to the template and thereby provide a specialization for T_Obj types that derive from sigc::trackable. This prevents a crash when casting from the derived type to sigc::trackable after the derived destructor has run. This cast can sometimes fail when using multiple inheritance, at least with g++. Bug #169225 by Régis Duchesne and Christian Hammond. * sigc++/type_traits.h: Add documenation for the internal is_base_and_derived<> template, which allows us to specialize other templates for certain template types.