You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Marton Szasz (Jira)" <ji...@apache.org> on 2023/05/10 12:05:00 UTC
[jira] [Created] (MINIFICPP-2117) Fix bustache build in C++20 mode
Marton Szasz created MINIFICPP-2117:
---------------------------------------
Summary: Fix bustache build in C++20 mode
Key: MINIFICPP-2117
URL: https://issues.apache.org/jira/browse/MINIFICPP-2117
Project: Apache NiFi MiNiFi C++
Issue Type: Bug
Reporter: Marton Szasz
Fails, because std::allocator::rebind was removed in C++20. error:
{noformat}
In file included from /usr/include/boost/unordered/detail/buckets.hpp:15,
from /usr/include/boost/unordered/detail/table.hpp:10,
from /usr/include/boost/unordered/detail/equivalent.hpp:14,
from /usr/include/boost/unordered/unordered_map.hpp:17,
from /usr/include/boost/unordered_map.hpp:16,
from /home/szaszm/nifi-minifi-cpp/build/extensions/bustache/thirdparty/bustache-install/include/bustache/ast.hpp:12,
from /home/szaszm/nifi-minifi-cpp/build/extensions/bustache/thirdparty/bustache-install/include/bustache/format.hpp:10,
from /home/szaszm/nifi-minifi-cpp/build/extensions/bustache/thirdparty/bustache-install/include/bustache/model.hpp:10,
from /home/szaszm/nifi-minifi-cpp/extensions/bustache/ApplyTemplate.cpp:30:
/usr/include/boost/unordered/detail/allocate.hpp: In instantiation of ‘struct boost::unordered::detail::rebind_wrap<std::allocator<std::pair<const std::basic_string<char>, std::vector<bustache::ast::content> > >, boost::unordered::detail::ptr_node<std::pair<const std::basic_string<char>, std::vector<bustache::ast::con
tent> > > >’:
/usr/include/boost/unordered/detail/unique.hpp:105:11: required from ‘struct boost::unordered::detail::pick_node<std::allocator<std::pair<const std::basic_string<char>, std::vector<bustache::ast::content> > >, std::pair<const std::basic_string<char>, std::vector<bustache::ast::content> > >’
/usr/include/boost/unordered/detail/unique.hpp:158:37: required from ‘struct boost::unordered::detail::map<std::allocator<std::pair<const std::basic_string<char>, std::vector<bustache::ast::content> > >, std::basic_string<char>, std::vector<bustache::ast::content>, boost::hash<std::basic_string<char> >, std::equal_t
o<std::basic_string<char> > >’
/usr/include/boost/unordered/unordered_map.hpp:59:40: required from ‘class boost::unordered::unordered_map<std::basic_string<char>, std::vector<bustache::ast::content> >’
/home/szaszm/nifi-minifi-cpp/build/extensions/bustache/thirdparty/bustache-install/include/bustache/ast.hpp:58:22: required from here
/usr/include/boost/unordered/detail/allocate.hpp:358:72: error: no class template named ‘rebind’ in ‘class std::allocator<std::pair<const std::basic_string<char>, std::vector<bustache::ast::content> > >’
358 | typedef typename Alloc::BOOST_NESTED_TEMPLATE rebind<T>::other type;
| ^~~~
{noformat}
The latest bustache commit is targeting C++20, and doesn't even require boost anymore.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)