From 953a5a9c2246439f1c68a0872bbf83d5d0dd466f Mon Sep 17 00:00:00 2001 From: Cedric Nugteren Date: Mon, 15 May 2017 22:14:17 +0200 Subject: Fixed a minor compilation issue of a sample with GCC 4.8 --- samples/sgemm.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'samples') diff --git a/samples/sgemm.cpp b/samples/sgemm.cpp index b960865b..ab7858e1 100644 --- a/samples/sgemm.cpp +++ b/samples/sgemm.cpp @@ -62,7 +62,8 @@ int main() { auto device = devices[device_id]; // Creates the OpenCL context, queue, and an event - auto context = cl::Context({device}); + auto device_as_vector = std::vector{device}; + auto context = cl::Context(device_as_vector); auto queue = cl::CommandQueue(context, device); auto event = cl_event{nullptr}; -- cgit v1.2.3