$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Peter Dimov (pdimov_at_[hidden])
Date: 2003-04-09 06:41:47
David Abrahams wrote:
> "Gennadiy Rozental" <gennadiy.rozental_at_[hidden]> writes:
>
>> #include "boost/mpl/int.hpp"
>>
>> template<typename T>
>> void foo( T const& t ) {}
>>
>> int main() {
>> foo( boost::mpl::int_<1>::type::value );
>>
>> return 0;
>> }
>
> Just with Borland as far as I can tell. This passes gcc 2.95.3 and
> 3.2
> and fails Borland 5.5.1, which is so bad I can't be very surprised.
This example, IMO, must fail. Passing a static const by reference requires a
definition. AFAICS mpl::int_<> does not provide one. But I'm not up to date
with the latest core issues.