mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
quell warning about unused local typedef
strictly speaking the gcc diagnostics are wrong, the typedef is actually used once templates are invoked on the structs. simply use the typedef in the structs itself to avoid the warning like is done for other variants.
This commit is contained in:
@@ -585,7 +585,7 @@ private:
|
||||
struct MaxOp
|
||||
{
|
||||
using result_type = T;
|
||||
const T& operator()(const T& t1, const T& t2)
|
||||
const result_type& operator()(const T& t1, const T& t2)
|
||||
{
|
||||
return std::max(t1, t2);
|
||||
}
|
||||
@@ -641,7 +641,7 @@ private:
|
||||
struct MinOp
|
||||
{
|
||||
using result_type = T;
|
||||
const T& operator()(const T& t1, const T& t2)
|
||||
const result_type& operator()(const T& t1, const T& t2)
|
||||
{
|
||||
return std::min(t1, t2);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user