From e0ba4518dd27ed1c0dec798d69f63d289b3d3d18 Mon Sep 17 00:00:00 2001 From: Ovidiu Mircescu Date: Fri, 21 Apr 2017 15:18:23 +0200 Subject: [PATCH] Fix undefined reference when using idefix as a library. We had the following error when linking against YACSevalYFX library: undefined reference to `YACSEvalSeqAnyInternal::size() const --- src/evalyfx/YACSEvalSeqAny.cxx | 8 -------- src/evalyfx/YACSEvalSeqAny.hxx | 8 ++++++++ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/evalyfx/YACSEvalSeqAny.cxx b/src/evalyfx/YACSEvalSeqAny.cxx index 4206e551d..0a6f9208b 100644 --- a/src/evalyfx/YACSEvalSeqAny.cxx +++ b/src/evalyfx/YACSEvalSeqAny.cxx @@ -34,14 +34,6 @@ YACSEvalSeqAny *YACSEvalSeqAny::BuildEmptyFromType(const std::string& dataType) throw YACS::Exception("YACSEvalSeqAny::BuildEmptyFromType : Only int and double are actualy managed !"); } -template -std::size_t YACSEvalSeqAnyInternal::size() const -{ - if(!_arr) - throw YACS::Exception("YACSEvalSeqAnyDouble::size : empty array !"); - return _arr->size(); -} - YACSEvalSeqAnyDouble::YACSEvalSeqAnyDouble(const std::vector& arr):_arr(0) { std::vector *zeArr(new std::vector(arr)); diff --git a/src/evalyfx/YACSEvalSeqAny.hxx b/src/evalyfx/YACSEvalSeqAny.hxx index 195319e0c..b766131c6 100644 --- a/src/evalyfx/YACSEvalSeqAny.hxx +++ b/src/evalyfx/YACSEvalSeqAny.hxx @@ -94,4 +94,12 @@ private: YACSEvalSeqAnyInternal *_arr; }; +template +std::size_t YACSEvalSeqAnyInternal::size() const +{ + if(!_arr) + throw YACS::Exception("YACSEvalSeqAnyDouble::size : empty array !"); + return _arr->size(); +} + #endif -- 2.30.2