Skip to content

Commit

Permalink
const correctness
Browse files Browse the repository at this point in the history
  • Loading branch information
jonahm-LANL committed Nov 22, 2024
1 parent 14ed096 commit 86c2499
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion doc/sphinx/src/using-eos.rst
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,9 @@ e.g.,
with GPUs it can produce very unintuitive behaviour. We recommend
you only make the ``operator()`` non-const if you really know what
you're doing. And in the anonymous function case, we recommend you
capture by value, not reference.
capture by value, not reference. ``EvaluateDevice`` does not support
side effects at all and you must pass your functors in by value in
that case.

To see the utlity of the ``Evaluate`` function, it's probably just
easiest to provide an example. The following code evaluates the EOS on
Expand Down

0 comments on commit 86c2499

Please sign in to comment.