• R/O
  • SSH
  • HTTPS

eirrepo: Commit


Commit MetaInfo

Revision458 (tree)
Time2022-04-11 23:23:13
Authorquiret

Log Message

- quick adjustments

Change Summary

Incremental Difference

--- common/sdk/Iterate.h (revision 457)
+++ common/sdk/Iterate.h (revision 458)
@@ -33,7 +33,7 @@
3333 }
3434 else
3535 {
36- for ( itemType& item : container )
36+ for ( auto& item : container )
3737 {
3838 cb( item );
3939 }
@@ -42,7 +42,7 @@
4242
4343 // Iterates over multiple containers, non-uniquely.
4444 template <typename itemType, typename... containerTypes, typename callbackType>
45- requires ( std::is_invocable <callbackType, itemType&>::value )
45+ requires ( sizeof...( containerTypes ) > 0 && std::is_invocable <callbackType, itemType&>::value )
4646 AINLINE void iterateOverMulti( callbackType&& cb, containerTypes&&... containers )
4747 {
4848 ( iterateOver <itemType> ( containers, cb ), ... );
Show on old repository browser