Force early instantiation so test works with delayed instantiation compilers (Greg Comeau)

[SVN r19378]
This commit is contained in:
Beman Dawes
2003-07-31 00:11:24 +00:00
parent 19e8840ad7
commit c26dde8e6e

View File

@ -24,6 +24,12 @@ RandomAccessIterator foo(RandomAccessIterator from, RandomAccessIterator)
return from;
}
// ensure that delayed instantiation compilers like Comeau see the failure early
// enough for "compile-fail" testing with the Boost.Build testing framework. (Greg Comeau)
template
std::list<int>::iterator
foo(std::list<int>::iterator, std::list<int>::iterator);
int main()
{
std::deque<int> d;