summaryrefslogtreecommitdiff
path: root/reportdesign
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 /reportdesign
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 'reportdesign')
-rw-r--r--reportdesign/source/ui/dlg/Formula.cxx10
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: */