icecream-cpp
icecream-cpp copied to clipboard
🍦 Never use cout/printf to debug again
Request: Add a new macro `ICA(array, length)` that can print the array. Example Usage: ```cpp int a[100] = {1, 2, 3, 4}; ICA(a+1, 2); // prints "ic| (a+1)[2]: [2, 3]"...
The existing code only considers `()` and `` for not cutting on a comma, but it does not handle `{}`. ### Code Reference: https://github.com/renatoGarcia/icecream-cpp/blob/29b8e8ab6447192629fadd248b226902f3c53cbf/icecream.hpp#L2666-L2691 ### Example: ```cpp #include #include int...
With this we can print values that must be mutable. Like a type with a non const reference on ostream