Skip to content

Commit 37f6658

Browse files
committed
Guard Boost includes in regulatory_network.h with USE_BOOST
rootcling (ROOT's dictionary generator) compiles headers independently of the normal build, bypassing the USE_BOOST guard in biodynamo.h. Wrapping the entire header content in #ifdef USE_BOOST makes the file safe to process in any context when Boost is not present.
1 parent 1f8fc74 commit 37f6658

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/core/behavior/regulatory_network.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
#ifndef CORE_BEHAVIOR_REGULATORY_NETWORK_H_
1616
#define CORE_BEHAVIOR_REGULATORY_NETWORK_H_
1717

18+
#ifdef USE_BOOST
19+
1820
#include "core/behavior/behavior.h"
1921

2022
#include "boost/numeric/odeint.hpp"
@@ -34,5 +36,7 @@ class RegulatoryNetwork : public Behavior {
3436
};
3537
}
3638

39+
#endif // USE_BOOST
40+
3741
#endif // CORE_BEHAVIOR_REGULATORY_NETWORK_H_
3842

0 commit comments

Comments
 (0)