Branch: refs/heads/master
  Home:   https://github.com/NixOS/nix
  Commit: 9fa21765e7f267efcc65e1aa6ab21402ea6125ad
      
https://github.com/NixOS/nix/commit/9fa21765e7f267efcc65e1aa6ab21402ea6125ad
  Author: Shea Levy <[email protected]>
  Date:   2016-08-29 (Mon, 29 Aug 2016)

  Changed paths:
    M src/libexpr/eval.cc

  Log Message:
  -----------
  callFunction: Copy functors to the heap

Normally it's impossible to take a reference to the function passed to
callFunction, so some callers (e.g. ExprApp::eval) allocate that value
on the stack. For functors, a reference to the functor itself may be
kept, so we need to have it on the heap.

Fixes #1045


_______________________________________________
nix-commits mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-commits

Reply via email to