summaryrefslogtreecommitdiff
path: root/examples/pydantic-models-to-grammar-examples.py
diff options
context:
space:
mode:
authorDaniel Bevenius <daniel.bevenius@gmail.com>2024-04-25 14:38:14 +0200
committerGitHub <noreply@github.com>2024-04-25 15:38:14 +0300
commit4ab99d8d4762869506bb675b36501fd7c2af00b2 (patch)
tree571c823d448c085e22981db32162094b47809d00 /examples/pydantic-models-to-grammar-examples.py
parent54770413c484660d021dd51b5dbacab7880b8827 (diff)
clip : rename lerp function to avoid conflict (#6894)
This commit renamesthe lerp (linear interpolation) function in clip.cpp to avoid a conflict with the lerp function in the <cmath> standard C++ library when using c++20. The motivation for this change is to enable projects that use c++20 to be able to compile clip.cpp without having to resort to patching it. The lerp function was added to cmath in version C++20 (202002L) and is why this is not causing any issue at the moment as C++11/C++17 is currently used by llama.cpp. I realize that llama.cpp uses either C++11 (or C++17 in the case for SYCL) but wanted to ask if this would be an acceptable change just the same. Refs: https://en.cppreference.com/w/cpp/numeric/lerp Signed-off-by: Daniel Bevenius <daniel.bevenius@gmail.com>
Diffstat (limited to 'examples/pydantic-models-to-grammar-examples.py')
0 files changed, 0 insertions, 0 deletions