Skip to content

Commit

Permalink
template function for static checks should have "inline" attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
aparshin-intel authored and Konstantin Vladimirov committed Oct 6, 2021
1 parent 5ba30d0 commit 24a5b94
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/Headers/cm/include/cm/cm_has_instr.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ SPDX-License-Identifier: MIT
============================= end_copyright_notice ===========================*/

#include "cm_common.h"

// This file provide CM_HAS_<Feature> flag
// It's used for checking platform to support <Feature>
//
Expand All @@ -31,7 +33,7 @@ namespace CheckVersion {
};

template <typename T>
void Check() {
CM_INLINE CM_NODEBUG void Check() {
CM_STATIC_ERROR(T::check, "Not supported feature for this platform");
}
}
Expand Down

0 comments on commit 24a5b94

Please sign in to comment.