John Wellbelove
5fa7ee22ab
Merge branch 'master' into feature/constexpr-for-string_view
...
# Conflicts:
# include/etl/array.h
# include/etl/deque.h
# include/etl/forward_list.h
# include/etl/generators/type_traits_generator.h
# include/etl/list.h
# include/etl/platform.h
# include/etl/vector.h
# meson.build
# test/test_array.cpp
# test/test_deque.cpp
# test/test_flat_map.cpp
# test/test_flat_multimap.cpp
# test/test_flat_multiset.cpp
# test/test_flat_set.cpp
# test/test_forward_list.cpp
# test/test_list.cpp
# test/test_map.cpp
# test/test_multimap.cpp
# test/test_multiset.cpp
# test/test_set.cpp
# test/vs2019/etl.vcxproj.filters
2021-11-26 18:10:57 +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
John Wellbelove
0acd537a7e
Updates
2021-11-15 09:37:22 +00:00
John Wellbelove
d4a22293c7
Added missing includes
2021-11-15 09:37:21 +00:00
John Wellbelove
8f02e90735
Experimental automatic builtins for algorithms
2021-11-15 09:37:21 +00:00
John Wellbelove
e296bd24f7
Make functions for containers
2021-11-15 09:32:50 +00:00
John Wellbelove
d03e6f5587
Latest implementations
2021-11-15 09:32:12 +00:00
John Wellbelove
84974acbfa
Added 'make' functions to construct containers
...
Added tests for 'make' and 'template deduction'
2021-11-15 09:32:11 +00:00
John Wellbelove
bb72ded2e2
constexpr for enum_type
2021-11-15 09:31:30 +00:00
Jeremy Overesch
beadf9e898
Remove unnecessary casts that causes warnings. ( #461 )
2021-11-15 09:31:30 +00:00
John Wellbelove
29d711003f
Added non-const string pointer overload
2021-11-15 09:31:30 +00:00
John Wellbelove
f459c3e190
First experiments
2021-11-15 09:31:30 +00:00
Jeremy Overesch
331e44b0ac
Change != to < in ipool to get rid of erroneous clang-tidy nullptr dereference warning ( #457 )
2021-11-15 09:31:30 +00:00
Steffen Zimmermann
c412277bb9
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-11-15 09:31:29 +00:00
mhx
fccebd4724
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-11-15 09:31:29 +00:00
mhx
0759d3f2ee
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-11-15 09:31:29 +00:00
John Wellbelove
36bb393d7a
Fix compiler warnings
2021-11-15 09:31:29 +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
John Wellbelove
e6dd894896
Experimental automatic builtins for algorithms
2021-10-26 17:27:05 +01:00