Skip to content

Commit

Permalink
Fixing compiler error from HPX with const_cast
Browse files Browse the repository at this point in the history
  • Loading branch information
khuck committed Jun 10, 2019
1 parent 5581730 commit dc66a61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/apex/proc_read.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ void initialize_papi_events(void) {
}
for (size_t i = 0 ; i < nvml_event_names.size() ; i++) {
int event;
retval = PAPI_event_name_to_code( nvml_event_names[i].c_str(), &event );
retval = PAPI_event_name_to_code( const_cast<char*>(nvml_event_names[i].c_str()), &event );
if (retval != PAPI_OK) {
fprintf(stderr, "Error coding NVML event.\n");
return;
Expand Down

0 comments on commit dc66a61

Please sign in to comment.