GithubHelp home page GithubHelp logo

Comments (5)

eao197 avatar eao197 commented on September 28, 2024

We can make workaround similar to one from timertt library. It will work for VS2015 builds on x32/x64 platforms.

from restinio.

binglongx avatar binglongx commented on September 28, 2024

I tried replacing alignas( std::max_align_t ) with __declspec(align(8)) in the two aformentioned lines in buffers.hpp. For VS2015 Win32 builds, it chokes with exactly the same errors. VS2015 (Win32 builds) just cannot honor aligned function parameters. VS2015 (x64 builds) however always compiles fine.

I think TIMERTT_ALIGNAS_WORKAROUND in SObjectizer/timertt library should have similar problems with VS2015 Win32 builds.

from restinio.

binglongx avatar binglongx commented on September 28, 2024

Just tested on VS2017, both x86 and x64 builds work fine. So the issue is specific to x86 builds in VS2015 (and probably prior versions).

from restinio.

eao197 avatar eao197 commented on September 28, 2024

Which version of VS2015's compiler do you have?

I'm trying version 19.00.24210 now and it supports alignas and alignof keywords.
This version also compiles sobjectizer/timertt cleanly.

from restinio.

ngrodzitski avatar ngrodzitski commented on September 28, 2024

@binglongx, please, check out v.0.4.0.1 (or current master), it has fixes for the issue.

from restinio.

Related Issues (20)

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.