Skip to content

Commit

Permalink
fix in Array getData, added missing throw
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@25788 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
niklwors committed Apr 28, 2015
1 parent 1e37a76 commit d8892d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions SimulationRuntime/cpp/CMakeLists.txt
Expand Up @@ -378,8 +378,6 @@ message(STATUS "Boost dirs '${Boost_LIBRARY_DIRS}', '${Boost_INCLUDE_DIR}'")
include_directories ("Include")
include_directories ("Solver")

get_directory_property(info COMPILE_DEFINITIONS)
message(STATUS "info: ${info}")
add_subdirectory (Core/Modelica)
add_subdirectory (Core/Math)
add_subdirectory (SimCoreFactory/OMCFactory)
Expand Down
4 changes: 2 additions & 2 deletions SimulationRuntime/cpp/Include/Core/Math/Array.h
Expand Up @@ -264,15 +264,15 @@ class RefArray : public BaseArray<T>
*/
virtual const T* getData() const
{
std::runtime_error("Access const data of reference array is not supported");
throw std::runtime_error("Access const data of reference array is not supported");
}

/**
* Access to c-array data
*/
virtual T* getData()
{
std::runtime_error("Access data of reference array is not supported");
throw std::runtime_error("Access data of reference array is not supported");
}

/**
Expand Down

0 comments on commit d8892d1

Please sign in to comment.