Skip to content

Compile error on VS2015 #1

@ntoussaint

Description

@ntoussaint

I cannot seem to be able to use the zipfor operator.
For instance writing the following example:

    std::vector<int> a{ 1,2,3 };
    std::array<std::string, 3> b{ "hello","there","coders" };

    zipfor(i, s eachin a, b)
        std::cout << i << " => " << s;

results in the following error:

reference variable "i" requires an initializer

The ittcounter<>() works fine though

I am using Visual Studio 2015 with c++11 capabilities.
Or perhaps it is simply because this code does not support windows compiler?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions