Skip to content

Instantly share code, notes, and snippets.

@Swoorup
Created December 31, 2016 07:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Swoorup/5454bd2ef5218e2a4dc36c97847df1b0 to your computer and use it in GitHub Desktop.
Save Swoorup/5454bd2ef5218e2a4dc36c97847df1b0 to your computer and use it in GitHub Desktop.
-*- mode: compilation; default-directory: "~/Dropbox/vulkan_experiments/vkapp/" -*-
Compilation started at Sat Dec 31 15:28:03
time dub
Performing "debug" build using dmd for x86_64.
derelict-util 2.0.6: target for configuration "library" is up to date.
derelict-sdl2 2.0.2: target for configuration "library" is up to date.
xcb-d 2.1.0+1.11.1: target for configuration "library" is up to date.
xlib-d 0.1.1: target for configuration "library" is up to date.
vulkantriangled ~master: building configuration "application"...
source/app.d(83,29): Error: template app.HelloTriangleApplication.initVulkan.checkValidationLayerSupport.all!((layerName)
{
return availableLayers[].count!((layer)
{
writefln("Matching %s == %s, %s", to!string(layer.layerName), layerName, to!string(layer.layerName) == layerName);
return fromStringz(layer.layerName) == layerName;
}
) > 0;
}
).all cannot deduce function from argument types !()(string[]), candidates are:
/usr/include/dlang/dmd/std/algorithm/searching.d(117,10): app.HelloTriangleApplication.initVulkan.checkValidationLayerSupport.all!((layerName)
{
return availableLayers[].count!((layer)
{
writefln("Matching %s == %s, %s", to!string(layer.layerName), layerName, to!string(layer.layerName) == layerName);
return fromStringz(layer.layerName) == layerName;
}
) > 0;
}
).all(Range)(Range range) if (isInputRange!Range && is(typeof(unaryFun!pred(range.front))))
dmd failed with exit code 1.
dub 0.75s user 0.22s system 97% cpu 0.999 total
Compilation exited abnormally with code 2 at Sat Dec 31 15:28:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment