IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 26b65a78 authored by Ralf M Ulrich's avatar Ralf M Ulrich
Browse files

boost

parent 71c253ee
No related branches found
No related tags found
No related merge requests found
find_package (Boost COMPONENTS iostreams REQUIRED)
set ( set (
files files
source/Interface.boost.cc source/Interface.boost.cc
...@@ -5,6 +7,8 @@ set ( ...@@ -5,6 +7,8 @@ set (
add_library(libCorsikaData STATIC ${files}) add_library(libCorsikaData STATIC ${files})
target_link_libraries(libCorsikaData PUBLIC Boost::iostreams)
set_target_properties ( set_target_properties (
libCorsikaData libCorsikaData
PROPERTIES PROPERTIES
......
...@@ -55,7 +55,7 @@ namespace corsika_data { ...@@ -55,7 +55,7 @@ namespace corsika_data {
int CorDataNextText(char* data, const int length) { int CorDataNextText(char* data, const int length) {
std::string STR; std::string STR;
global_DataFile.ReadNextText(STR); global_DataFile.ReadNextText(STR);
for (int i=0; i<length && i<STR.size(); ++i) for (int i=0; i<length && i<(int)STR.size(); ++i)
data[i] = STR[i]; data[i] = STR[i];
return 0; return 0;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment