3 * slots and signal: These should now be declared with the
6 sigc::signal<R(Args...)>
7 syntax, like std::function<>.
8 Version 2.9/2.10 of libsigc++-2.0 supports both the old and new syntax.
10 * sigc::men_fun(): Take the instance by reference only.
14 This is the first release of the libsigc++-3.0 API, which installs in parallel
15 with libsigc++-2.0. The API is not significantly different, but the
16 implementation is far simpler, using variadic templates instead of generating
17 C++ code from .m4 files.
19 libsigc++-3.0 requires a compiler with C++14 support.
24 * signal: Add a moving connect() method, taking an rvalue reference
26 (Kjell Ahlstedt) Bug #756484
27 * can_deduce_result_type_with_decltype: Rename the check() methods to
28 checksize(). check() is a preprocessor macro in Mac OS X.
29 (Kjell Ahlstedt) Bug #759315 (David Otto)
30 * Temporarily undefine the nil macro, if it's defined.
31 nil is a preprocessor macro in Objective-C++ and Mac OS X.
32 (Kjell Ahlstedt) Bug #695235
33 * Correct the mem_functor<> declarations.
38 * slot: Handle auto-disconnection when a slot contains a slot
39 (Kjell Ahlstedt) Bug #755003 (Ryan Beasley)
40 * slot and signal: Correct move constructors and move assignments.
41 (Kjell Ahlstedt) Bug #756484.
42 * trackable, slot_base, signal_base, connection: Add some noexcept specs
43 (Kjell Ahlstedt) Bug #756484.
44 * trackable, slot, signal: Remove noexcept from move operations.
45 (Kjell Ahlstedt) Bug #756484.
46 * slot and signal: Add missing move constructors and move assignments
47 (Kjell Ahlstedt) Bug #756484.
48 * signal_impl: =delete copy and move operations.
49 (Murray Cumming, Kjell Ahlstedt) Bug #756484
50 * typed_slot_rep: =delete unimplemented copy and move operations.
51 (Murray Cumming, Kjell Ahlstedt) Bug #756484
52 * slot_rep: =delete copy and move operations.
53 (Murray Cumming, Kjell Ahlstedt) Bug #756484
58 * Add back deprecated adaptors/lambda API to avoid an unintented ABI break.
59 (Kjell Ahlstedt) Bug #755550 (Michael Biebl)
60 * sigc::trackable: Move operations: Don't move the callback list
61 (Kjell Ahlstedt) Bug #755393 (Tom Schoonjans)
66 * C++11: deduce_result_type: Simplify with C++11 variadic template.
67 (Murray Cumming, Marcin Kolny) Bug #753612
68 * Fix the build with MSVC.
69 (Chun-wei Fan) Bug #754082
76 * slot_base::operator=(const &): Copy the blocked too,
77 so the destionation is blocked if the source is blocked,
78 regardless of whether the destionation was previously
79 blocked, because this seems to be what we should expect.
81 * C++11: slot_base, slot*, signal_base, signal*, trackable:
84 * Update MSVC Projects, requiring at least MSVC++ .Net 2013
91 * Use C++11 "using" aliases to simplify code that uses type traits.
92 (Murray Cumming) Bug #753580
97 * Remove useless headers:
104 Some of these still have equivalents in sigc++/adaptors/
105 (Kjell Ahlstedt, Murray Cumming) Bug #752560
106 * C++11: Replace deprecated std::auto_ptr by std::unique_ptr.
108 * C++11: Use std::is_base_of<> instead of our sigc::is_base_and_derived<>,
109 removing sigc::is_base_and_derived<>.
110 (Kjell Ahlstedt, Murray Cumming) Bug #752560
111 * C++11: Use of range-based for loops.
113 * C++11: Use of the auto keyword.
115 * C++11: Use of nullptr instead of 0.
117 * sigc++/slot.h: Use a regular .h file instead of generating it
118 from an .m4 file. Bug #752560
120 * Visual Studio Builds: Move 2010 Projects to 2012 to support C++11.
122 * Use -Wformat-security and -Wshadow with --enable-warnings=fatal.
128 * Use (and require) C++11
130 * Using C++11 lambda functions to create sigc::slots:
131 Avoid the need for SIGC_FUNCTORS_DEDUCE_RESULT_TYPE_WITH_DECLTYPE.
133 * Remove the already-deprecated sigc::lambda (and sigc::group) API.
134 This is an API change but should not be an ABI change, so it should
135 only affect you when rebuilding applications, if you use this API.
136 (Murray Cumming, Kjell Ahlstedt)
141 * A slot's functor is destroyed when an empty slot is assigned to the slot.
142 (Kjell Ahlstedt) Bug #738602 (James Lin)
143 * test_disconnect_during_emit tests that the slot is really disconnected
144 during signal emission.
149 Note: API/ABI is the same as in release 2.3.2. Compared to stable
150 releases 2.2.x, the API has been broken regarding visit_each() functions.
151 See the NEWS entry for libsigc++ 2.3.2.
153 * Fix the test_lambda test case for MS Visual C++ 2013 and other
154 C++11-compliant compilers.
155 (Kjell Ahlstedt) Bug #734368 (Ryan Beasley)
156 * Add a missing #include in limit_reference.h.
159 - Use doxygen-extra.css from the mm-common package.
160 Requires mm-common 0.9.7 when configured to use maintainer-mode.
165 Note: The implementation of bug #724496 breaks API for some users,
166 but it does not break ABI.
167 Only users who have added their own visit_each() overloads are affected by
168 the API break. Their programs will still compile, but there will be run-time
169 errors, if they rely on auto-disconnection of slots.
170 Updated instructions for users who implement their own adaptors are found
171 in the description of sigc::adapts<>.
173 * Replace visit_each() overloads by struct visitor<>.
174 Add the test_visit_each test case.
175 (Ryan Beasley, Kjell Ahlstedt) Bug #724496
176 * signal_impl::notify(): Don't delete signal_impl during erase().
177 (Kjell Ahlstedt) Bug #564005 (Alexander Shaduri)
178 * Fix 'make check' with clang++ 3.4 and --enable-warnings=fatal
179 (Kjell Ahlstedt) Bug #724496 (Ryan Beasley)
180 * Fix test_cpp11_lambda for gcc 4.8
182 * Speed up disconnection of slots.
183 (Kjell Ahlstedt) Bug #167714 (Neal E. Coombes)
184 * Auto-generate the ChangeLog from the git log for 'make dist'.
186 * Don't use __file__ in the FIREWALL m4 macro.
187 (Kjell Ahlstedt) Bug #699168 (John Ralls)
188 * Add the track_obj() adaptor and test_track_obj test case.
189 Deprecate libsigc++ lambdas, sigc::group() and sigc::var().
190 Use C++11 lambda expressions instead.
191 (Kjell Ahlstedt) Bug #672555
193 - Emphasize that signals are reference counted.
194 (Kjell Ahlstedt) Bug #611941 (Jonathon Jongsma)
195 - Mention std::function<> and std::bind() where appropriate.
196 (Kjell Ahlstedt, Chris Vine)
197 - Use DOXYGEN_SHOULD_SKIP_THIS consistently to exclude internal
198 functions from the reference documentation.
201 - Enable C++11 lambda expressions with MS Visual Studio 2012 and later
202 (Ryan Beasley) Bug #733752
203 - Update MSVC_Net2010
204 (Kjell Ahlstedt) Bug #724496 (Ryan Beasley)
208 * signal_base: Add blocked(), block(), unblock().
209 (Kjell Ahlstedt) Bug #153780
213 * Fix comma operator in libsigc++ lambda expressions.
214 Andris Pavenis) Bug #342911
215 * Added SIGC_FUNCTORS_DEDUCE_RESULT_TYPE_WITH_DECLTYPE.
216 This allows most uses of libsigc++'s lambda expressions to be
217 replaced by standard C++11 lambda expressions.
218 (Kjell Ahlstedt) Bug #672555.
219 Thanks to Chow Loong Jin, who posted similar code on libsigc-list.
220 * Use std::size_t and std::ptrdiff_t instead
222 * Fix 'make check' with gcc 4.7.
224 * Enable test_lambda in 'make check'.
225 (Kjell Ahlstedt) Bug #669128.
230 * slot_rep: Avoid access to deleted object in notify(),
232 (Kjell Ahlstedt ) Bug #564005 (Alexander Shaduri)
233 * Mention visit_each() in the documentation of sigc::adapts.
238 * trackable: Avoid calling the same callback function twice, fixing some
240 (Kjell Ahlstedt) Bug #589202
241 * Minor documentation corrections.
243 * Fix the build with GCC 4.6
245 * Windows build fixes for MSVC++ .Net 2005 and 2010
250 Nothing interesting. Just a small change for library.gnome.org.
255 - Added main page text with doxygen.
256 (David King, Murray Cumming)
257 - Fix the functors Doxygen group.
259 - Tutorial: Removed outdated marshallers section that had no working example.
260 (Murray Cumming) Bug #417924 (Michael Ekstrand)
264 * Slight documentation changes.
265 (Murray Cumming) Bug #614741 (Armin Burgmeier)
269 * Accumulators: Allow return types that are different to the signal's.
270 (Krzysztof Kosiński)
272 - Disable collaboration graphs in documentation
273 - Use non-blurry font for graph labels.
275 - sigc::hide() correction: It always only hides one signal argument.
277 * Fix the MSVC++ build.
282 * Namespace sigc is now documented, in order to make large chunks of the
283 reference reappear. (Daniel Elstner)
284 * The shipped reference documentation has been regenerated using Doxygen
285 1.6.1, so that the document type is now XHTML 1.0. (Daniel Elstner)
286 * The shipped Devhelp file has been generated with a newer version of the
287 XSLT script in mm-common, so that documentation groups no longer appear
288 as namespace prefixes in the keyword list. (Daniel Elstner)
292 * Reenable the per-class hierarchy graphs in the reference documentation.
294 * Drop the custom HTML header and footer, and use the shared doxygen.css
295 file from mm-common. (Daniel Elstner)
299 * New build system based on mm-common. The mm-common module is now
300 required for building from the git repository, but not for builds
301 of release archives. (Daniel Elstner)
302 * The public reference documentation is now hosted on library.gnome.org.
303 (Frédéric Péters, Daniel Elstner)
308 - Added project files (and property sheets) for
309 MSVC++ 2005 and 2008.
311 - Removed unnecessary dependency on afxrefs.h, so it builds
312 with MSVC++ Express editions.
317 * Added an include of functors/slot.h that was mistakenly removed
318 during the 2.1 series.
319 (Deng Xiyue) Bug #521418.
323 * Really fix the build with Sun CC.
324 (Elaine Xiong. Bug #302098)
328 * Build fixes when using gcc 4.3 pre-releases.
329 (Ryan Hill, Vladimir Marek)
333 WARNING: This is an unstable release and should not yet be
334 packaged by distributions unless libsigc++ 2.0.x does not
335 build for some reason (Please report such bugs).
337 * Removed the SigC:: namespace and other compatibility API,
338 to fix the build with some versions of some compilers,
339 such as the SUN Forte C++ CC compiler.
340 See bug #302098, for instance
343 - Added Added typedefs for
344 value_type, reference, and pointer, so that these
345 iterators are more like standard C++ iterators, so they can
346 be used with standard C++ algorithms.
347 (Michael Elkstrand) (Bug #417926).
348 - Added emit_reverse().
353 * slot::disconnect(): Make this work.
354 sigc::connection::disconnect() already worked.
355 (James Lin, Murray Cumming)
356 * visit_each compilation problem fixed.
361 * Fixed build for SUN Forte C++ 5.5
362 * Fixed build for MSVC++ 7.1
363 * Fixed crash when using --no-inline with g++.
367 * g++ 3.2 (and Mac OS X g++ 3.3) build fix.
369 * Compose: Fix slot lifetime regression introduced in
370 2.0.9. (Philip Langdale)
371 * tests: Small ISO C++ correctness fix (Marek Rouchal)
372 * Don't specify unused function parameter names.
377 * SUN Forte 5.7 build fix for ambiguity when using
378 inner template class. However, you still need the
379 patch in bug #302098 to finish the build.
383 * signal_emit::emit(): Ensure the correct order of
384 destruction of the member variables, to avoid a leak.
385 (Andreas Ames, bug #306249)
386 * Allow recursive signal emission again.
387 (Neal E. Coombes, bug #303896)
388 * SUN Forte CC 5.5 build fixes:
389 - test_compatibility minor fix.
390 - visit_each() template specializations:
391 Mention the bool I_derives_trackable template type,
392 (Friedemann Kleint, bug #305647)
393 - Check for the non-standard SUN reverse_iterator,
394 and use alternative code if necessary.
399 * Fixes crashes when using virtual inheritance, particularly
400 with bound by-reference parameters, caused by casting
401 from derived to base when the derived destructor has run.
403 This might affect non-g++ compilers, so do tell us about
408 * Build fixes for SUN Forte, Tru64
409 (Murray Cumming), and MSVC++ (Cedric Gustin).
413 * tests: Include <new> to avoid unresolved symbols on Tru64.
415 * When signal handlers are connected made during an emit
416 of the same signal, prevent them from being called in the
417 same emit, to prevent infinite loops.
419 * Performance improvement in a corner case.
424 * sigc::bind() now works with the AIX and Tru64 compilers.
425 See the comments in sigc++/visit_each.h: visit_each_type()
426 if you have compilation problems.
428 * sigc::var() is now documented. (Roger Ferrer Ibáñez)
432 * Maybe avoid (incorrect) warning with g++ 3.3.5.
434 * Fix namespace ambiguity when using multiple
435 major versions of libsigc++. (Liza Klerck)
439 * Now builds with the following compilers, in addition to
440 the existing GNU g++, SUN Forte CC 5.5, MSVC++ .Net 2003,
444 - IRIX MIPSpro 7.4.2m
445 (Older versions of all these compilers might also work.)
446 (Murray Cumming, www.thewrittenword.com)
447 * MSVC++ .Net 2003 build improvements.
448 (Cedric Gustin, Timothy M. Shead)
449 * Replace C-style casts with reinterpret_cast<> and
450 static_cast<>. (e97_far at e.kth.se).
451 * Documentation: Added manual, based on the manual in
452 libsigc++ 1.2, but updated for the new API.
458 * Fixed a memory leak in sigc::slot.
459 * Fixed compilation for gcc-3.4.
460 * Fixed compilation for Intel C++ compiler (upgraded libtool).
461 * Fixed project files for MSVC .Net (Timothy M. Shead).
462 * Fixed segfaults when compiled with MSVC .Net 2003 (moved
463 all calls to new and delete into non-inline library code).
464 * In the compatibility module use correct bound_mem_functor
465 variants for const (volatile) methods when creating a slot.
466 * Minor documentation fix.
467 * Resolved bugs: #152327 #148744 #152323 #151404 #153143
471 * Distribute pregenerated configuration header for MSVC .Net.
475 * Fixed warnings and compiler errors in the test cases.
476 * Added a new test case (Murray Cumming).
477 * Fixed 'hello_world' example.
478 * Don't test optional features that fail with the Sun FORTE.
479 * Fixes for the Sun FORTE to compile out-of-the-box
480 (Damien Carbery, Murray Cumming, Martin Schulze).
481 * Fixes for MSVC to build a DLL out-of-the-box (James Lin).
482 * Improved compiler specific configuration during 'configure'.
483 * Added rmp description file libsigc++-2.0.spec (Eric Bourque).
484 * Minor documentation improvements (Murray Cumming).
485 * Resolved bugs: #147311 #147313 #147391 #144846 #145541
489 * Fix segfault on emission of unconnected signal.
490 * Test emission of unconnected signals in the test case.
491 * Suppress compiler warning at dynamic_cast<>-test for good.
492 (Help from Christof Petig and Timothy M. Shead.)
496 * Suppress compiler warning in compatibility module at
497 dynamic_cast<>-test (fix suggested by Timothy M. Shead).
498 * If a custom accumulator is specified invoke it on signal
499 emission even if the signal's slot list is empty. (This used
500 to be the case in libsigc++-1.2 as pointed out by Timothy.)
504 * Fixed serious bug in reference counting in sigc::signal_base::impl().
505 * Fixed SigC::Object-derivation check in SigC::slot() compatibility module.
506 * Fixed compilation on Apple gcc 3.3 (assisted by Spundun Bhatt).
507 * Fixed configure check for gcc 3.4 (Murray Cumming).
511 * Implemented sigc::connection::blocked() (Murray Cumming).
512 * Added the scripts directory to the make dist target (Murray Cumming).
513 * Added more documentation (Martin Schulze).
517 * Fixed compiler warning in sigc::connection (Alexander Nedotsukov, Murray Cumming).
518 * Fixed examples and made them part of the regular build (Murray Cumming).
519 * Added header sigc++config.h for configure time checks (Murray Cumming).
520 * Added configure time checks to determine the correct syntax
521 for explicit template method specializations (Murray Cumming).
522 * Removed code using partial specializations of overloaded template methods
523 from test cases. SUN Forte doesn't support this feature (Martin Schulze).
524 * Fixed compilation for gcc 3.4 (Murray Cumming).
529 * Add numbered slot# templates.
530 * Allow for methods of the object's base types to be passed into sigc::mem_fun().
532 Other fixes and cleanups:
533 * Make is_base_and_derived template compatible with the SUN Forte.
534 * Non-template code moved from .m4 macro source to .h/.cc files (Murray Cumming).
535 * Implementation moved to .cc files (Murray Cumming).
536 * More fixes for the SUN Forte. Make some more ctors explicit.
540 * Added sigc::slot_base::operator bool() (Murray Cumming).
541 * Build docs directory by default (Murray Cumming).
542 * Fixed minor doxygen issues (Murray Cumming).
543 * Fixed compiler warning in signal.h (Murray Cumming).
547 * Fixed passing references through sigc::slot (Reported by Jeff Franks).
548 * Enabled binding of objects to method slots through sigc::bind().
549 * Reworked sigc::bind() API: Made the template argument for the
550 parameter position zero-based and optional. Added overloads for
551 binding of up to 7 arguments at a time when no position is specified.
552 * Reworked sigc::hide() API: Made the template argument for the
553 parameter position zero-based and optional.
554 * Fixed compilation problems with MSVC .Net 2003 (Roel Vanhout).
555 * Distribute MSVC .Net 2003 project files in the tarballs.
556 * Improved and extended documentation.
561 * Added adaptor retype(). With this final API addition all adaptors
562 are in place that are available in libsigc++-1.2.
563 * Added negation lambda operator. Use STL names for lambda actions.
564 * Remove formerly disabled support for gcc extension typeof().
565 * Added project files for MS Visual Studio .Net 2003. (Roel Vanhout)
566 * Make libsigc++2 compile with .Net 2003. (Roel Vanhout, Martin Schulze)
567 * Build shared version of libsigc++2 by default. (Cedric Gustin)
568 * Add support for win32 platform. (Cedric Gustin)
569 * Install .m4 files. (requested by Ron Steinke)
570 * Cleaned up functors.
571 * Restructured and completed documentation of the core library parts.
575 API Additions and important bug fixes:
576 * Compatibility module completed. libsigc++-1.2 filenames are preserved.
577 * Fixed critical bug in auto-disconnection: don't defer detaching
578 of a slot from all referred trackables during signal emission.
579 * Reduced size of slots significantly.
580 * Fixed support for sigc::ref() in adaptors.
581 * Fixed sigc::visit_each(): only hit targets that are passed by
582 reference; pass bound members in bound_member_functor by reference.
583 * Add lambda actions sigc::{reinterpret,static,dynamic}_cast_
584 to support explicit parameter conversion.
585 * Add adaptors sigc::retype_return<>() and sigc::hide_return().
588 * Fixed return type deduction for bind<0>.
589 libsigc++-1.9.11 should compile with gcc-3.3.
590 * Fixed copy constructor and operator=() of slot template.
591 * Fixed a compiler warning in signal_emit#<>::emit().
592 * Improved test case.
596 * Fix compiler issues with gcc-3.3.2 (patch from Jeff Franks).
597 * Remove compiler check for the gcc extension typeof().
598 * Simplify bind_functor templates.
599 * Move definition of struct nil into functor_trait.h.
603 * Add a constructor to sigc::connection that takes a slot_base&
604 to support user defined slot lists like they are used in gtkmm.
605 * Fix compiler issues with gcc-3.3.2 (reported by Jeff Franks).
609 * Add compatibility module that defines namespace SigC.
610 namespace SigC should be API compatible to libsigc++-1.2.
611 Currently only the core parts of the library are supported.
612 Adaptors are still to follow.
613 * Fix connection::operator=(). Include connection.h in sigc++.h.
614 * Get rid of namespace functor.
615 * Rename dependency to destroy_notify_callback.
616 * Rename trackable::clear() to trackable::notify_callbacks().
617 * Move slot_base, signal_base, slot_iterator[_buf], slot_list
618 out of namespace internal. They are public API.
619 * Add reference counter to signal_impl enabling signals
620 to share the underlying information.
621 * Add convenience function signal#::make_slot().
622 * Get rid of one-letter-parameter-names.
623 * Get rid of "using namespace ..." in the test cases.
624 * Add lambda operators subscript ([]) and assign (=).
625 * Fix is_base_and_derived<> for const types.
626 * New and updated documentation.
627 * Add previous announces to file NEWS.
631 * Added sigc++/sigc++.h. (Murray Cumming)
632 * Added member_method example. (Murray Cumming)
633 * Renamed closure to slot.
634 * Fixed issues with gcc-3.3. (Adreas Rottmann)
635 * Removed unnecessary void specializations.
636 * Made adaptors' operator()() (overload with no arguments) return a value.
637 * Made visit_each() support adaptors.
638 * Overhauled return type deduction to make it work without typeof().
639 * Added convinience macros SIGC_FUNCTORS_HAVE_RESULT_TYPE and
640 SIGC_FUNCTOR_TRAIT(T_functor, T_result) to make return type deduction system
641 support 3rd-party funtors.
642 * Changed syntax of group adaptor from "[functor] % grp([lambdas])" to "group
643 ([functor], [lambdas])".
644 * Made many fixes to lambda functionality.
645 * Added var() and constant() lambda creators.
646 * Added many lambda operators.
647 * Added ref() which creates a reference wrapper to enable storage of
648 references in bind and group adaptors.
649 * Expanded test suite.
650 * Added documentation. (Corrections by Murray Cumming)
654 * First public release of the unstable 2.0 generation.
655 libsigc++ 2.0 uses modern C++ mechanisms to achieve a highly
656 flexible, yet typesafe callback system. It supports all features of
657 libsigc++ 1.2 and improves upon it by:
658 - No need to specify the number of arguments in signal definitions.
659 - Connection of any compatible (=implicitly convertable) functor
661 - Implicit type conversions of parameters during signal emission.
662 - Lambda adaptor for complete restructuring of functor parameter
663 lists in one line (subject to changes).
664 - Signal has a fully featured stl style list interface.
665 - A convinient accumulator API (replacing the old marshaller API).
666 - Removal of unnecessary memory management functionality.
667 - Lightweight class "trackable" for use as base class of your
668 class hierarchy replaces class "Object".