1034 Commits

Author SHA1 Message Date
John Wellbelove
cb7ee61b33 Disable span TContainer constructor for arrays 2021-12-14 17:23:26 +00:00
John Wellbelove
6827a73ff8 Disable span TContainer constructor for arrays 2021-12-14 17:23:26 +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
44715cadfe Experimental code 2021-12-12 18:20:45 +00:00
John Wellbelove
6b91aaeb1d Merge branch 'development' of https://github.com/ETLCPP/etl into development 2021-12-05 15:54:33 +00:00
John Wellbelove
06e8aaf8d4 #475 When ETL_NO_ATOMICS is defined the timer.h file should not define timer_semaphore_t
#471 Add contains() method to etl::map and etl::set
#477 deque::resize should throw deque_full if requested size is too large
2021-12-05 15:39:11 +00:00
John Wellbelove
f5514104e7 contains() & transparent comparator 2021-12-04 17:28:47 +00:00
John Wellbelove
6e1e75094f Re-enable multi_vector 2021-12-04 11:00:51 +00:00
John Wellbelove
c6ff32e901 contains() & transparent comparator 2021-12-04 10:24:04 +00:00
John Wellbelove
4d48082f4f contains() & transparent comparator for map, multimap, set and multiset 2021-12-01 18:42:22 +00:00
John Wellbelove
85fb83f0be contains() & transparent comparator for reference set and multiset 2021-12-01 13:19:31 +00:00
John Wellbelove
a16ae414a2 contains() & transparent comparator for set and multiset 2021-11-27 18:42:30 +00:00
John Wellbelove
042da035fa contains() & transparent comparator for map and multimap 2021-11-27 17:57:51 +00:00
John Wellbelove
015003fa03 contains() for etl::map 2021-11-26 19:35:18 +00:00
John Wellbelove
3e98f4c537 Fixes for Ubuntu 18 2021-11-21 16:45:37 +00:00
John Wellbelove
ed0d2f5759 Fixes for Ubuntu 18 2021-11-21 16:38:16 +00:00
John Wellbelove
6c3deb2426 Fixes for Ubuntu 18 2021-11-21 16:25:18 +00:00
John Wellbelove
02cee8c2a3 Fixes for Ubuntu 18 2021-11-21 16:17:23 +00:00
John Wellbelove
e3aea9105c Fixes for Ubuntu 18 2021-11-21 16:07:44 +00:00
John Wellbelove
2ecc0aa287 Fixes for Ubuntu 18 2021-11-21 14:47:16 +00:00
John Wellbelove
42f9505237 Fixes for Ubuntu 18 2021-11-21 14:37:58 +00:00
John Wellbelove
f5f93926c9 Fixes for Ubuntu 18 2021-11-21 14:32:49 +00:00
John Wellbelove
b9778190dc Updated version numbers 2021-11-21 12:35:30 +00:00
John Wellbelove
fa637f794e Update to const_iterator parameter for insert. 2021-11-21 10:36:09 +00:00
John Wellbelove
8872b9a0ae const_iterator parameters for containers 2021-11-20 19:04:39 +00:00
John Wellbelove
11fa2e4e38 Merge branch 'hotfix/remove-template-overload-abiguity' into development
# Conflicts:
#	include/etl/forward_list.h
#	include/etl/list.h
#	include/etl/vector.h
#	test/test_forward_list.cpp
#	test/test_list.cpp
2021-11-19 11:23:50 +00:00
John Wellbelove
7aaf37e21d Updated deque 2021-11-19 11:20:49 +00:00
Bo Rydberg
a41418ed91
Fix compile error for vector assign and insert with same type non-iterator (#466) 2021-11-19 11:05:04 +00:00
Bo Rydberg
e4431d3940
Fix compile error insert/assign two same types non-iterator (#467)
Assignent and insert_after of count and values of same types has to work
2021-11-19 11:04:41 +00:00
Bo Rydberg
94507ad1c6
Fix list insert and assign errors (#468)
Also fixing some test asserts related to etl::list.
2021-11-19 11:04:10 +00:00
John Wellbelove
b61c5e0442 Modified deque const_iterator to iterator 2021-11-18 13:29:48 +00:00
John Wellbelove
642e36a9c4 Modified deque const_iterator to iterator 2021-11-18 12:58:33 +00:00
Steffen Zimmermann
08218d71cd harmonize copy ctor and asignment op for etl::delegate (#465)
etl::delegate has a user-written copy constructor and a defaulted assignment
operator. The copy constructor does the same as a defaulted copy constructor,
therefore there is no need to add a user-written copy constructor.

The combination of user-written copy constructor and defaulted assignment
operator causes a warning in Coverity, a static code analyzer:

copy_without_assign: Class etl::delegate<void ()> has a user-written copy constructor etl::delegate<void ()>::delegate(etl::delegate<void ()> const &) but no corresponding user-written assignment operator.

This commit replaces the user-written copy constructor with a defaulted copy
constructor, which does the same.
2021-11-18 12:26:15 +00:00
John Wellbelove
5baa1af862 Make functions for containers 2021-11-18 12:26:15 +00:00
John Wellbelove
52586af2de Latest implementations 2021-11-18 12:26:15 +00:00
John Wellbelove
8fc7e0208a Added 'make' functions to construct containers
Added tests for 'make' and 'template deduction'
2021-11-18 12:26:13 +00:00
John Wellbelove
d93834ed83 constexpr for enum_type 2021-11-18 12:25:31 +00:00
John Wellbelove
58013e8257 changed iterator parameters to const_iterator 2021-11-17 17:59:57 +00:00
Steffen Zimmermann
d05bf1b4fd
let map/multimap/set/multiset return iterator on erase (#463)
Beginning with C++11, erase(iterator) and erase(const_iterator) returns
an iterator following the removed element.
2021-11-15 10:26:23 +00:00
Jeremy Overesch
c70db16a20
Remove unnecessary casts that causes warnings. (#461) 2021-11-10 17:31:31 +00:00
John Wellbelove
1b7a59be92 Added non-const string pointer overload 2021-11-06 16:45:06 +00:00
Jeremy Overesch
2c42e9f91b Change != to < in ipool to get rid of erroneous clang-tidy nullptr dereference warning (#457) 2021-11-04 12:15:54 +01:00
John Wellbelove
dd77b4ec70 First experiments 2021-11-04 12:15:14 +01:00
Steffen Zimmermann
4068482bd5
add ifdef guard for msvc pragma (#455)
There was a msvc specific pragma to disable a warning which causes compiler warnings for non-msvc compilers.
Additionally added a push/pop paradigm to restore the original warning state correctly.
2021-10-29 12:16:26 +01:00
John Wellbelove
9c8bf85e8d Merge branch 'hotfix/fix-cpp11-pedantic-constexpr' into development 2021-10-27 10:43:49 +01:00
John Wellbelove
946b48cbf1 Merge branch 'hotfix/#454-fix-compiler-error-msvc-16' into development 2021-10-27 09:48:13 +01:00
John Wellbelove
ea11ee8818 Fix compiler warnings 2021-10-27 09:47:52 +01:00
mhx
b4c4d8ac4a
Fix constexpr accepts() implementation to be C++11 compliant (#452)
In C++11, `constexpr` functions must not contain compound statements.
This change makes the implementation of `message_packet::accepts` use
a single conjunction instead of a `switch` statement.

See https://gcc.godbolt.org/z/zKbsx3nY5.

Co-authored-by: John Wellbelove <jwellbelove@users.noreply.github.com>
2021-10-25 13:46:00 +01:00
mhx
efb9c04a45
Fix constexpr accepts() implementation to be C++11 compliant (#451)
In C++11, `constexpr` functions must not contain compound statements.
This change makes the implementation of `message_packet::accepts` use
a single conjunction instead of a `switch` statement.

See https://gcc.godbolt.org/z/zKbsx3nY5.
2021-10-22 19:11:47 +01:00