Boost logo

Boost :

From: Mateusz Loskot (mateusz_at_[hidden])
Date: 2006-09-06 09:51:05


Philippe Vaucher wrote:
> Hello,
>
> I have a rather silly question, but why is boost::static_assert named
> static_assert and not compile_assert ?
> It's probably a lack of understanding of the static concept on my side but I
> can't find what's static in a compile-time assertion :)

According to my understanding, 'static' term is used to name
compile-time operations, mostly in meta programming.
It's similar distinction as between
dynamic polymorphism (run-time, through virtual functions)
and
static polymorphism (compile-time, implemented with templates).

Cheers

-- 
Mateusz Loskot
http://mateusz.loskot.net

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk