diff options
author | Michael Stahl <mstahl@redhat.com> | 2013-04-09 23:05:15 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2013-04-10 16:21:41 +0200 |
commit | 164cf38321c63a03ec7acd9b4d5fef84404e1fd7 (patch) | |
tree | 27194b2f35949f9c570bb3dfff6fda67b014531f /reportdesign | |
parent | e816271818c0d08a92d0d7fe37b58556e4724092 (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 'reportdesign')
-rw-r--r-- | reportdesign/source/ui/dlg/Formula.cxx | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/reportdesign/source/ui/dlg/Formula.cxx b/reportdesign/source/ui/dlg/Formula.cxx index abbed45b6655..cd92312151c8 100644 --- a/reportdesign/source/ui/dlg/Formula.cxx +++ b/reportdesign/source/ui/dlg/Formula.cxx @@ -258,9 +258,13 @@ SAL_WNODEPRECATED_DECLARATIONS_PUSH pArray->Fill(_aTokenList, NULL); return pArray; } -SAL_WNODEPRECATED_DECLARATIONS_POP -// ============================================================================= + } // rptui -// ============================================================================= + +// 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: */ |