Skip to content

Releases: PG1003/observer

v2.1.0

04 Jun 19:13
Compare
Choose a tag to compare

Observer 2.1.0

Changes

  • Removed apex_observer class from the public API and moved it to detail namespace of the observer library.
  • Fixed compilation with C++17 or newer.
  • Build tests, examples and benchmark with C++17.

v2.0.2

24 Dec 16:11
Compare
Choose a tag to compare

Observer 2.0.2

Changes

  • Revisited noexcept specifiers.
  • Fixed a universal reference for the pg::connection_owner::connect overload that connects function objects.
  • Fixed connecting const member functions for instances that are const.

v2.0.1

01 Apr 17:43
Compare
Choose a tag to compare

Observer 2.0.1

Changes

  • pg::connection_owner now uses a std::vector instead of a std::set to store connections.
  • Added pg::connect functions which return a pg::scoped_connection.
  • Renamed pg::observer_owner to pg::connection_owner and provided an alias for the old name to ensure backwards compatibility.
  • pg::connection_owner supports static polymorphism for subjects.
  • Added pg::blockable_subject.

Breaking changes

  • The overload pg::connection_owner::connect which connected one subject to another is removed. Use the connect overload for member functions instead. See tests or chain_subjects example.
  • pg::subject is no longer blockable, use pg::blockable_subject instead for cases that needs to block a subject.
  • pg::subject_blocker now requires subjects to provide a block and a unblock function, for example like pg::blockable_subject.
  • A connection is no longer automaticly invalidated. The usability of this feature didn't justify the extra complexity.

v1.1.1

24 Mar 22:06
Compare
Choose a tag to compare

Observer 1.1.1

  • Restored the detail namespace in observer.h.
  • Added a simple benchmark to get an idea about the overhead.

v1.1.0

24 Mar 22:05
Compare
Choose a tag to compare

Observer v1.1.0

  • The destructor of subject now calls the disconnect of its observers in the reversed order the in which observers were connected.
  • Refactored the connection handle.
  • Made pg::invoke part of the public API.
  • Added doxygen documentation for the public API.
  • Changed the observer interface to allow custom observer types.

v1.0.0

20 Dec 18:25
Compare
Choose a tag to compare

Observer 1.0.0

The first release of Observer.

  • No bugs known.