37 Commits

Author SHA1 Message Date
John Wellbelove
d884719098 Fixed all 'extra semicolon' warnings 2025-12-16 09:15:26 +00:00
John Wellbelove
02b0de1ae9 Added extra static assert checks for functors and lambdas 2025-10-13 17:42:27 +01:00
Roland Reichwein
363d2e8ab5
Make call interfaces in etl::delegate and etl::closure conditionally noexcept (#1172)
* Make all call interfaces in etl::delegate conditionally noexcept

This covers the case when the invoked code can throw.

For operator(), this was already implemented. Do similarly for the
other call interfaces.

* Make all call interfaces in etl::closure conditionally noexcept

Similar to etl::delegate, the contained delegate might be
throwing. Apply the same solution as in etl::delegate to make
the call interfaces conditionally noexcept.
2025-09-06 20:50:58 +01:00
John Wellbelove
8c49e67702 Added return_type and argument_types to etl::delegate 2025-08-13 19:51:31 +01:00
John Wellbelove
6c7cb5ac18 Added test for a constexpr lambda under C++17 and above 2025-02-17 08:00:17 +00:00
John Wellbelove
3ed1c49d35 Added constexpr lambda test to delegate unit tests 2025-02-13 17:11:48 +00:00
John Wellbelove
deb26318fb Unit test for delegate initialisation with non-capturing lambda as a constexpr function pointer 2025-02-11 11:41:46 +00:00
John Wellbelove
548c2be4c3 Merge branch 'hotfix/#1019-UB-when-passing-a-temporary-lambda-to-a-delegate' into development 2025-02-01 17:55:30 +00:00
John Wellbelove
101cfd598f Disabled initialisation of a delegate from a temporary lambda 2025-01-27 09:13:18 +00:00
John Wellbelove
4b7997ae17 #965 Fix accident creation of a delegate to an rvalue delegate when copying/assigning from delegate with mismatching signature
#966 A constructor for delegate with a freestanding function
2024-11-10 18:00:03 +00:00
John Wellbelove
af9b3deade Added the option of more logical ordering for template parameters for compile time member functions 2024-08-11 12:13:46 +01:00
John Wellbelove
77513730e0 Fixed shadow warnings in all files
#823 Multiple variable shadowing warnings in private/bitset_new.h
2024-01-25 14:22:26 +00:00
John Wellbelove
5eec513d8a Added clear() to delegate 2023-07-04 11:45:09 +01:00
John Wellbelove
8a46297486 Added include to delegate tests 2023-05-01 23:38:19 +01:00
John Wellbelove
7a131acc54 New tests for delegate 2023-05-01 15:22:00 +01:00
John Wellbelove
9f4c5bbb94 C++11 unit tests - Work in progress 2023-04-30 11:06:23 +01:00
John Wellbelove
c9565d1fd9 Updated etl::delgate to handle const functors correctly
Updated version info

Fixed functor delegate enable_if
2022-12-17 13:33:30 +00:00
John Wellbelove
baa47d1c33 Updated copyright notice 2022-06-10 21:45:37 +01:00
John Wellbelove
4f05600900 Added delegate test from std::function 2021-12-30 09:36:36 +00:00
John Wellbelove
d2ba5e9956 Multiple code changes, delegates & timers 2021-12-14 10:52:49 +00:00
John Wellbelove
331e07b272 Multiple code changes, delegates & timers 2021-12-13 17:16:21 +00:00
John Wellbelove
db46cc5dec Added set() member functions 2021-10-09 14:28:37 +01:00
John Wellbelove
c691991538 Removed warning from compilation 2021-10-01 18:41:35 +01:00
John Wellbelove
428399b6d7 Added call_if and call_or member functions. 2021-09-02 12:50:41 +01:00
John Wellbelove
2e234c7ff5 Fixed incomplete template specialisations in type_traits.h 2021-08-27 18:42:46 +01:00
John Wellbelove
140c69e6ea Updated version numbers 2021-07-18 20:22:12 +01:00
Chiraffollo
c9b170a05a
Add moveable parameter support to delegate (#356)
* Add moveable parameter support

* Change std::forward to etl::forward
2021-03-24 08:57:28 +00:00
John Wellbelove
dbfa71944f Abstracted unit test framework header 2021-03-05 13:52:34 +00:00
John Wellbelove
6144794221 constexpr, template aliases and inline variables 2020-11-30 12:56:46 +00:00
John Wellbelove
0c99ef5282 circular_buffer (no copy or assignment) 2020-10-20 11:02:44 +01:00
John Wellbelove
0bfc97a914 Variadic versions of etl::type_id_lookup and etl::type_type_lookup for C++11 and above. 2020-05-19 20:12:12 +01:00
John Wellbelove
e323f2267f Changed http://www.etlcpp.com to https://www.etlcpp.com 2020-05-01 10:22:36 +01:00
John Wellbelove
83347ccfdd Work in progress 2020-01-09 11:15:50 +00:00
John Wellbelove
c0ca7c9d87 Add assert check for uninitialised delegate call 2019-11-04 12:27:16 +00:00
John Wellbelove
6efad78028 Compatibility changes for GCC v5.4. 2019-06-23 09:54:02 +01:00
John Wellbelove
d9f79715e4 Merge remote-tracking branch 'origin/feature/delegates' into development
# Conflicts:
#	include/etl/delegate.h
#	include/etl/version.h
#	support/Release notes.txt
#	test/test_delegate.cpp
2019-05-22 20:18:11 +01:00
John Wellbelove
d2d3db1659 Merge remote-tracking branch 'origin/feature/delegates' into development
# Conflicts:
#	include/etl/type_traits.h
#	include/etl/type_traits_generator.h
#	test/test_type_traits.cpp
2019-05-19 23:16:24 +01:00