Comments (1)
To check for overflow, I just need to do this:
try {
auto value = std::stoi("999999999999999999999999999");
}
catch (const std::out_of_range&) {
...
}
Also, I need to write an isValidUnsigned* family of functions as well. When I do, revsisit my validation of SET_TIMER_PERIOD in instantiator.cpp.
from trogdor-pp.
Related Issues (20)
- Clean up Entity Constructors
- Reading multiple lines from TCPIn HOT 1
- Player quit command crashes trogdor-server HOT 1
- Object arrays and object generators HOT 2
- Object arrays HOT 1
- Player descriptions HOT 1
- Custom Directions HOT 1
- Trogdord: the indexes on restored games don't get updated HOT 1
- Being inventory should be implemented using std::weak_ptr HOT 2
- Make Thing::setLocation() private and only allow Place::insertThing() to call it HOT 2
- Make timer period configurable and possibly support turn-based gameplay HOT 1
- Trogdord: allow socket connections HOT 1
- Trogdord: ini file includes HOT 2
- Trogdord: add usernamd and password config options for redis config in trogdord.ini HOT 1
- Override trogdord.ini settings with environment variables HOT 1
- Investigate turn-based play HOT 1
- Investigate optional Javascript support HOT 1
- Reduce the number of Lua states used HOT 1
- Support Lua 5.4
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 trogdor-pp.