Function as_non_constant

Synopsis

#include "breeze/workaround/as_non_constant.hpp"

template <typename T>
T as_non_constant(T value)

Description

Makes an expression non-constant.

Just returns a copy of value.

Used to workaround warnings from compilers or static analyzers, for instance Visual Studio /analyze warnings C6286 and C6326.

Returns
value

Source

Line 34 in breeze/workaround/as_non_constant.hpp.