Commit d730565
committed
[hist] Prepare for overloaded AtomicAdd member functions
With the previous code, the compiler would complain:
decltype cannot resolve address of overloaded function
For regular overloaded functions, it is possible to pass the expected
argument type (using std::declval), but not for member functions:
cannot call member function [...] without object
Instead use auto and trailing return type from C++11 to select the
right set of dispatch functions.1 parent 58bc18f commit d730565
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
200 | | - | |
| 200 | + | |
201 | 201 | | |
202 | | - | |
| 202 | + | |
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
206 | | - | |
| 206 | + | |
207 | 207 | | |
208 | | - | |
| 208 | + | |
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
| |||
0 commit comments