forked from boostorg/config
Tentative fix for BOOST_NO_EXTERN_TEMPLATE: previous test case was invalid.
[SVN r61930]
This commit is contained in:
1 parent
1995aad2de
commit
e2f6dc9127
4 files changed
+24
-4
No files matched your search
@@ -12,7 +12,26 @@
|
||||
|
||||
namespace boost_no_extern_template {
|
||||
|
||||
extern template<class T> void f(T);
|
||||
template<class T, class U> void f(T const* p, U const* q)
|
||||
{
|
||||
p = q;
|
||||
}
|
||||
|
||||
template <class T>
|
||||
class must_not_compile
|
||||
{
|
||||
public:
|
||||
void f(T const* p, int const* q);
|
||||
};
|
||||
|
||||
template <class T>
|
||||
void must_not_compile<T>::f(T const* p, int const* q)
|
||||
{
|
||||
p = q;
|
||||
}
|
||||
|
||||
extern template void f<>(int const*, float const*);
|
||||
extern template class must_not_compile<int>;
|
||||
|
||||
int test()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user