summaryrefslogtreecommitdiff
path: root/sc/source/ui/formdlg
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2013-04-09 23:05:15 +0200
committerMichael Stahl <mstahl@redhat.com>2013-04-10 16:21:41 +0200
commit164cf38321c63a03ec7acd9b4d5fef84404e1fd7 (patch)
tree27194b2f35949f9c570bb3dfff6fda67b014531f /sc/source/ui/formdlg
parente816271818c0d08a92d0d7fe37b58556e4724092 (diff)
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
Diffstat (limited to 'sc/source/ui/formdlg')
-rw-r--r--sc/source/ui/formdlg/formula.cxx4
1 files changed, 4 insertions, 0 deletions
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<formula::FormulaTokenArray>;
+template std::auto_ptr<formula::FormulaTokenArray>::operator std::auto_ptr_ref<formula::FormulaTokenArray>();
SAL_WNODEPRECATED_DECLARATIONS_POP
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */