Fix explicit instantiation regression

This commit is contained in:
Peter Dimov
2014-11-12 19:04:29 +02:00
parent aedcf3ccda
commit f65c57d9d2
4 changed files with 31 additions and 2 deletions

View File

@ -12,8 +12,12 @@ struct X
{
};
template<class T> void f( T & /*t*/ )
{
}
int main()
{
boost::shared_ptr<X> px( new X );
px[ 0 ];
f( px[ 0 ] );
}