[SERVER-19853] Can't use constexpr numeric_limits on msvc in MozJS Created: 10/Aug/15  Updated: 19/Sep/15  Resolved: 10/Aug/15

Status: Closed
Project: Core Server
Component/s: JavaScript
Affects Version/s: 3.1.7
Fix Version/s: 3.1.7

Type: Bug Priority: Major - P3
Reporter: Mira Carey Assignee: Mira Carey
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Platform 8 08/28/15
Participants:
Linked BF Score: 0

 Description   

We can't use numeric_limits in static asserts in msvc 2013 (no constexpr).

We should switch over to UINT_MAX



 Comments   
Comment by Githook User [ 10/Aug/15 ]

Author:

{u'username': u'hanumantmk', u'name': u'Jason Carey', u'email': u'jcarey@argv.me'}

Message: SERVER-19853 no numeric_limits for msvc in MozJS

can't use numeric_limits in static asserts on msvc 2013
Branch: master
https://github.com/mongodb/mongo/commit/a3fb8bf72e9d57587c2da817ec536a2f29da8a6c

Generated at Thu Feb 08 03:52:17 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.