boostorg / boost

Super-project for modularized Boost
https://github.com/boostorg/wiki/wiki/Getting-Started%3A-Overview
Boost Software License 1.0
6.97k stars 1.72k forks source link

guard tag against empty type #908

Closed grisumbras closed 3 months ago

grisumbras commented 3 months ago

In b2 $(a) in A B C is true when $(a) is empty (empty set is a subset of any set). So, the tag will produce a result for untyped targets, which is clearly not intended.

This currently does not happen anyway, because b2 doesn't run <tag>s for untyped targets, but I intend to change that, so that users could do make a : : @make-rule : <tag>@tag-rule ;

grisumbras commented 3 months ago

@pdimov anything else I need to do for this to get merged?

pdimov commented 3 months ago

In b2 $(a) in A B C is true when $(a) is empty

Amazing.