diff options
Diffstat (limited to 'mod/build-config-module.hxx')
-rw-r--r-- | mod/build-config-module.hxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/mod/build-config-module.hxx b/mod/build-config-module.hxx index bd6e0b0..97cfe28 100644 --- a/mod/build-config-module.hxx +++ b/mod/build-config-module.hxx @@ -54,13 +54,13 @@ namespace brep // Check if the configuration belongs to the specified class. // - // Note that the configuration base classes are not checked. - // - static bool - belongs (const bbot::build_config& cfg, const char* cls) + bool + belongs (const bbot::build_config&, const char*) const; + + bool + belongs (const bbot::build_config& cfg, const string& cls) const { - const strings& cs (cfg.classes); - return std::find (cs.begin (), cs.end (), cls) != cs.end (); + return belongs (cfg, cls.c_str ()); } // Convert dash-separated components (target, build configuration name, |