mirror of
https://github.com/boostorg/utility.git
synced 2025-08-03 23:04:34 +02:00
fixes
[SVN r1879]
This commit is contained in:
@@ -62,17 +62,22 @@ namespace test
|
|||||||
>
|
>
|
||||||
{};
|
{};
|
||||||
|
|
||||||
double value_default()
|
struct value_default
|
||||||
|
{
|
||||||
|
typedef double result_type;
|
||||||
|
|
||||||
|
double operator()() const
|
||||||
{
|
{
|
||||||
return 666.222;
|
return 666.222;
|
||||||
}
|
}
|
||||||
|
};
|
||||||
|
|
||||||
template<class Params>
|
template<class Params>
|
||||||
int f_impl(const Params& p)
|
int f_impl(const Params& p)
|
||||||
{
|
{
|
||||||
p[tester](
|
p[tester](
|
||||||
p[name]
|
p[name]
|
||||||
, p[value || &value_default ]
|
, p[value || value_default() ]
|
||||||
, p[index | 999]
|
, p[index | 999]
|
||||||
);
|
);
|
||||||
return 1;
|
return 1;
|
||||||
|
Reference in New Issue
Block a user