| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
svn path=/trunk/; revision=286
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
2005-12-14 John Profic <profic@kursknet.ru>
* sigc++/macros/signal.h.m4: Fix compilation problem in
the last patch.
|
|
|
|
|
|
| |
2005-12-14 John Profic <profic@kursknet.ru>
* sigc++/macros/signal.h.m4: Added emit_reverse().
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
2005-12-01 Murray Cumming <murrayc@murrayc.com>
* tests/Makefile.am:
* tests/test_slot_disconnect.cc: Added test
case from bug #311057.
|
|
|
|
|
|
|
|
|
|
| |
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)
~
|
| |
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
2005-07-13 Murray Cumming <murrayc@murrayc.com>
* docs/manual/libsigc_manual.xml: Fixed typo
found by Antonio Coralles.
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
2005-06-07 Murray Cumming <murrayc@murrayc.com>
* sigc++/visit_each.h: limit_derived_target(): Just some whitespace
changes.
|
|
|
|
|
|
|
| |
2005-06-07 Murray Cumming <murrayc@murrayc.com>
* sigc++/visit_each.h: limit_derived_target(): Just some whitespace
changes.
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|