Commit 4b3bb06
authored
Fix perfect forwarding in
The original wasn't actually allowing universal references and if you
have a datatype with a deleted copy constructor, the template
substitution would fail here. This lets me use `TypedAllocator` for some
type that isn't copyable. I doubt there would be any performance
difference due to copy elision anyway.TypedAllocator::allocate. (#2008)1 parent 9457397 commit 4b3bb06
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
0 commit comments