Salome HOME
[EDF27816] Management of double foreach and management of proxyfile lifecycle
[modules/yacs.git] / src / evalyfx / YACSEvalSeqAny.hxx
index d0edbf4d29a7932eb5bbdc493cf269376447798d..3172abc8633a358220cb1f6434f48eeba9178422 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2012-2015  CEA/DEN, EDF R&D
+// Copyright (C) 2012-2023  CEA, EDF
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -15,7 +15,7 @@
 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 //
 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
-// 
+//
 // Author : Anthony Geay (EDF R&D)
 
 #ifndef __YACSEVALSEQANY_HXX__
@@ -94,4 +94,12 @@ private:
   YACSEvalSeqAnyInternal<int> *_arr;
 };
 
+template<class T>
+std::size_t YACSEvalSeqAnyInternal<T>::size() const
+{
+  if(!_arr)
+    throw YACS::Exception("YACSEvalSeqAnyDouble<T>::size : empty array !");
+  return _arr->size();
+}
+
 #endif