mirror of https://github.com/CGAL/cgal
decltype(auto) -> auto to avoid references to temp
Visual Studio diagnoses:
```
C4172 : returning address of local variable or temporary
```
(reverts 0e898d9094)
This commit is contained in:
parent
e8492690c2
commit
9a7757c86e
|
|
@ -37,7 +37,7 @@ struct Converting_construction
|
|||
|
||||
template <typename... Args,
|
||||
std::enable_if_t<!CartesianFunctors::Is_trivial_construction<Source_construction, Args...>::value>* = nullptr>
|
||||
decltype(auto) operator()(Args&&... args) const {
|
||||
auto operator()(Args&&... args) const {
|
||||
return backward_convert(construct(convert(args)...));
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue