You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/cpp/attributes.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -136,7 +136,7 @@ The first call to `foo`, and both calls to `bar`, are treated as if they were de
136
136
137
137
The Microsoft-specific `[[msvc::intrinsic]]` attribute tells the compiler to inline a metafunction that acts as a named cast from the parameter type to the return type. When the attribute is present on a function definition, the compiler replaces all calls to that function with a simple cast. The `[[msvc::intrinsic]]` attribute is available in Visual Studio 2022 version 17.5 preview 2 and later versions. This attribute applies only to the specific function that follows it.
138
138
139
-
The `[[msvc::intrinsic]]` attribute has two constraints on the function it's applied to:
139
+
The `[[msvc::intrinsic]]` attribute has three constraints on the function it's applied to:
140
140
141
141
1. The function can't be recursive; its body must only have a return statement with a cast.
142
142
1. The function can only accept a single parameter.
0 commit comments