https://github.com/halide/Halide
Revision a7215a6612bf534a1e50969f0d886c92813e594f authored by Steven Johnson on 03 August 2018, 18:25:35 UTC, committed by Steven Johnson on 03 August 2018, 18:25:35 UTC
Declare it const, then add perfect-forwarding to some helper methods; this allows us to call it on `const Buffer<T>` (which are fine to mutate if T is not const) and also `Buffer<const T>` (which are now correctly prohibited from mutating the values via nonconst reference args to the lambda).
1 parent 366f949
History
Tip revision: a7215a6612bf534a1e50969f0d886c92813e594f authored by Steven Johnson on 03 August 2018, 18:25:35 UTC
Make Buffer::for_each_value const-correct
Tip revision: a7215a6
File Mode Size
apps
bazel
python_bindings
src
test
tools
tutorial
util
.clang-format -rw-r--r-- 1.4 KB
.gitignore -rw-r--r-- 1.0 KB
.travis.yml -rw-r--r-- 2.3 KB
CMakeLists.txt -rw-r--r-- 16.6 KB
Doxyfile -rw-r--r-- 103.6 KB
Doxyfile.in -rw-r--r-- 64.3 KB
LICENSE.txt -rw-r--r-- 1.1 KB
Makefile -rw-r--r-- 76.1 KB
README.md -rw-r--r-- 15.8 KB
README_cmake.md -rw-r--r-- 9.9 KB
README_rungen.md -rw-r--r-- 7.9 KB
halide.cmake -rw-r--r-- 28.7 KB

README.md

back to top