GithubHelp home page GithubHelp logo

cnbatch / dynarray Goto Github PK

View Code? Open in Web Editor NEW
14.0 2.0 0.0 651 KB

A header-only library, VLA for C++ (≥C++14). Extended version of std::experimental::dynarray

License: BSD 3-Clause "New" or "Revised" License

C++ 100.00%
dynarray vla multidimensional-arrays cpp cpp14-library cpp17-library header-only

dynarray's People

Contributors

cnbatch avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

dynarray's Issues

does it work with win32 MFC projects in MSVC

Hi,
Does it work with win32 MFC projects in MSVC 17?.
I am using the neat version of dynarray.hpp

I am creating an array in global namespace as below. If I include stdafx.h it doesn't compile.

dynarray.hpp line 920 '(' illegal token on right side of :: is the first error.

//code begins
#include "StdAfx.h"
#include "dynarray.hpp"

vla::dynarray<int, 3> arr(1, 1, 1, 0);

//a dummy function
void fun()
{

}

//code ends

Thanks
Ramesh D

Include guard macro uses a reserved name

#ifndef _VLA_DYNARRAY_

_VLA_DYNARRY_ is a reserved name, which makes this header undefined according to the standard. There's no reason you need a leading underscore for that macro, you can just use VLA_DYNARRY or VLA_DYNARRY_HPP_INCLUDED or something like that.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.