Skip to content

error: there are no arguments to 'BOOST_STATIC_ASSERT' that depend on a template parameter, so a declaration of 'BOOST_STATIC_ASSERT' must be available [-fpermissive] #54

@arvid-norlander

Description

@arvid-norlander

Trying to package boost.heap for Bazel Central Registry for 1.88.0 I get this:

external/boost.heap~/include/boost/heap/detail/tree_iterator.hpp: In constructor 'boost::heap::detail::tree_iterator<Node, ValueType, Alloc, ValueExtractor, PointerExtractor, check_null_pointer, ordered_iterator, ValueCompare>::tree_iterator(NodePointerIterator, NodePointerIterator, const Node*, const ValueCompare&)':
external/boost.heap~/include/boost/heap/detail/tree_iterator.hpp:198:9: error: there are no arguments to 'BOOST_STATIC_ASSERT' that depend on a template parameter, so a declaration of 'BOOST_STATIC_ASSERT' must be available [-fpermissive]
  198 |         BOOST_STATIC_ASSERT( ordered_iterator );
      |         ^~~~~~~~~~~~~~~~~~~
external/boost.heap~/include/boost/heap/detail/tree_iterator.hpp:198:9: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)

Bazel Central Registry builds are set up to check that each header compiles standalone, and for 1.87.0 this worked. For 1.88.0 there seems to be this new error. I would guess it is simply a missing include in include/boost/heap/detail/tree_iterator.hpp.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions