Skip to content

Commit 158492e

Browse files
fixed multiple definitions
1 parent 27f7243 commit 158492e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

taskflow/core/observer.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ enum ObserverType {
482482
/**
483483
@brief convert an observer type to a human-readable string
484484
*/
485-
const char* observer_type_to_string(ObserverType type) {
485+
inline const char* observer_type_to_string(ObserverType type) {
486486
const char* val;
487487
switch(type) {
488488
case TFPROF: val = "TFProf"; break;

taskflow/core/task.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ enum TaskType {
2828
/**
2929
@brief convert a task type to a human-readable string
3030
*/
31-
const char* task_type_to_string(TaskType type) {
31+
inline const char* task_type_to_string(TaskType type) {
3232

3333
const char* val;
3434

0 commit comments

Comments
 (0)