We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30da81d commit 00ea389Copy full SHA for 00ea389
llvm/include/llvm/ADT/ilist_node.h
@@ -149,6 +149,11 @@ class ilist_node_impl
149
///
150
/// This requires sentinel tracking to be explicitly enabled. Use the
151
/// ilist_sentinel_tracking<true> option to get this API.
152
+ ///
153
+ /// Rather than using static_assert to enforce the API is not called when
154
+ /// configured with is_sentinel_tracking_explicit=false, the method is
155
+ /// conditionally provided using std::enable_if. This way, clients of
156
+ /// ilist_node_impl can be fully instantiated for DLLExport on Windows.
157
template <typename T = OptionsT>
158
std::enable_if_t<T::is_sentinel_tracking_explicit, bool> isSentinel() const {
159
return node_base_type::isSentinel();
0 commit comments