On Tuesday, 9 December 2014 at 01:17:47 UTC, anonymous wrote:
Looks like a compiler bug.
Filed: https://issues.dlang.org/show_bug.cgi?id=13843
How do i successfully use std.functional.binaryFun in the
following example?
import std.stdio;
import std.functional;
class Foo(T, alias greater = a b) if
(is(typeof(binaryFun!(greater)(T.init, T.init)) == bool))
{
private alias compare = binaryFun!(greater);
public this()
On Monday, 8 December 2014 at 20:08:35 UTC, Gary Willoughby wrote:
import std.stdio;
import std.functional;
class Foo(T, alias greater = a b) if
(is(typeof(binaryFun!(greater)(T.init, T.init)) == bool))
{
private alias compare = binaryFun!(greater);
public this()
{