From 72e6a932682ba1b47f4fd4266528d674d72c59f9 Mon Sep 17 00:00:00 2001 From: Qudix <17361645+Qudix@users.noreply.github.com> Date: Mon, 11 Nov 2024 14:35:54 -0600 Subject: [PATCH] boost: add `heap` --- packages/b/boost/libs.lua | 7 +++++-- packages/b/boost/test.lua | 9 +++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/packages/b/boost/libs.lua b/packages/b/boost/libs.lua index cd4762b7d..bb745a4f4 100644 --- a/packages/b/boost/libs.lua +++ b/packages/b/boost/libs.lua @@ -33,7 +33,8 @@ local sorted_libs = { "chrono", "system", "charconv", - "atomic" + "atomic", + "heap" } local libs_dep = { @@ -149,7 +150,8 @@ local libs_dep = { "mpi", "random", "serialization" - } + }, + heap = {} } local header_only_buildable = { @@ -158,6 +160,7 @@ local header_only_buildable = { "exception", "regex", "math", + "heap" } function get_libs() diff --git a/packages/b/boost/test.lua b/packages/b/boost/test.lua index e14131533..19a69adac 100644 --- a/packages/b/boost/test.lua +++ b/packages/b/boost/test.lua @@ -84,6 +84,15 @@ function _header_only(package, snippets) } ]] ) + table.insert(snippets, + [[ + #include + void test() { + boost::heap::fibonacci_heap heap; + heap.push(1); + } + ]] + ) end function main(package)