Giter VIP home page Giter VIP logo

Comments (5)

axojhf avatar axojhf commented on May 14, 2024 1

Oh, I found a similar problem on Stack Overflow, could you please fix it?
https://stackoverflow.com/a/13566433/21216472

from glaze.

mwalcott3 avatar mwalcott3 commented on May 14, 2024

Yeah it's looking like someone is bringing in the windows headers without defining NOMINMAX. This is a pretty well known issue with the windows headers.This wouldn't have been a problem if windows followed standard naming conventions for macros. I believe anywhere we bring in windows headers we define NOMINMAX so it's probably another include you are using.

Not technically any issue with glaze itself but I think the wrapping the function name like you linked to is probably a good idea since this is such a common issue. You can try defining NOMINMAX at the top off the file that's having problems compiling in the meantime.

from glaze.

axojhf avatar axojhf commented on May 14, 2024

Yeah it's looking like someone is bringing in the windows headers without defining NOMINMAX. This is a pretty well known issue with the windows headers.This wouldn't have been a problem if windows followed standard naming conventions for macros. I believe anywhere we bring in windows headers we define NOMINMAX so it's probably another include you are using.

Not technically any issue with glaze itself but I think the wrapping the function name like you linked to is probably a good idea since this is such a common issue. You can try defining NOMINMAX at the top off the file that's having problems compiling in the meantime.

I don't know if defining NOMINMAX will have a chain reaction in Windows programming, I tried fork and modified it in the form of this (std::numeric_limits<int>::max)()
and changed the names of these two functions

static constexpr result_type min() { return increment == 0u ? 1u : 0u; }
static constexpr result_type max() { return modulus - 1u; }

Here is the part I forked and modified
axojhf@3836b2c
I was wondering if you had a chance to review my code changes and if you think they could be incorporated into the project.

from glaze.

mwalcott3 avatar mwalcott3 commented on May 14, 2024

Here is the part I forked and modified axojhf@3836b2c I was wondering if you had a chance to review my code changes and if you think they could be incorporated into the project.

@axojhf, the changes look good to me. If you make a pull request I'll merge it in.

from glaze.

mwalcott3 avatar mwalcott3 commented on May 14, 2024

@axojhf I ended up merging your changes in #172. Thank you.

from glaze.

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.