Boost logo

Boost-Build :

From: Jonathan Turkanis (technews_at_[hidden])
Date: 2005-02-28 12:27:02

Jody Hagins wrote:
> How do I integrate tests that are not supposed to compile. For
> example, assume that a specification says that invoking the copy
> constructor should not compile. How do I wrote such a test, and
> integrate it into the build/test system such that a failed
> compilation is treated as a successful test?

You can use the compile-fail rule. See, e.g.,



Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at