From 164cf38321c63a03ec7acd9b4d5fef84404e1fd7 Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Tue, 9 Apr 2013 23:05:15 +0200 Subject: add explicit template instantiations to appease Apple llvm-g++ 4.2.1 Without these linking fails with unresolved auto_ptr< formula::FormulaTokenArray> symbols which is clearly a compiler bug. Change-Id: I14faf8e318522f913370ac186b5114ae5db997ad --- sc/source/ui/formdlg/formula.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sc') diff --git a/sc/source/ui/formdlg/formula.cxx b/sc/source/ui/formdlg/formula.cxx index 55897bfbfd77..84413a5e61ee 100644 --- a/sc/source/ui/formdlg/formula.cxx +++ b/sc/source/ui/formdlg/formula.cxx @@ -659,6 +659,10 @@ SAL_WNODEPRECATED_DECLARATIONS_PUSH pArray->Fill( _aTokenList, pDoc->GetExternalRefManager()); return pArray; } +// for mysterious reasons Apple llvm-g++ 4.2.1 needs these explicit +// template instantiations; otherwise linking fails with unresolved symbols +template class ::std::auto_ptr; +template std::auto_ptr::operator std::auto_ptr_ref(); SAL_WNODEPRECATED_DECLARATIONS_POP /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit