Comments (5)
Oh, I found a similar problem on Stack Overflow, could you please fix it?
https://stackoverflow.com/a/13566433/21216472
from glaze.
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.
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
glaze/include/glaze/frozen/random.hpp
Lines 74 to 75 in 28c1a83
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.
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.
@axojhf I ended up merging your changes in #172. Thank you.
from glaze.
Related Issues (20)
- Generic json cannot initialize or read with std::array HOT 5
- std::map with custom class as keys HOT 13
- support for std::bitset<> HOT 9
- wstring support for keys (unordered_map) HOT 2
- Properly reject wstring HOT 1
- can't read_binary to std::unordered_set or std::set HOT 4
- Serialization differs (and silently fails) depending on optimization HOT 2
- MSVC_2022 build with unicode get error: HOT 2
- Extra/Unknown fields handling (was Any Setter/Getter) HOT 8
- Error parsing nullable quoted_num HOT 3
- Add reflection support for wrappers
- Add reflection for glz::obj
- Support inherited classes with reflection HOT 1
- Add enum reflection HOT 6
- Invalid syntax when reflection is used with error_on_unknown_keys HOT 1
- Compile time escape glaze object keys
- gcc segfault with newly developed variant reflection HOT 7
- Incorrect `type_name` implementation HOT 2
- UndefinedBehaviourSanitizer: load of misaligned address HOT 1
- Hash Index Out of Bounds HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from glaze.