Giter VIP home page Giter VIP logo

Comments (2)

pnstickne avatar pnstickne commented on July 29, 2024

auto i = 0u (aka unsigned i = 0) should do the trick. There should be no need to cast these singed/unsigned errors away unless more subtle hints don't bring the types into "signage compatibility".

Although arguable using size_t i = 0; would also be appropriate (required to be same as collection size since C++17, de facto-true before). In actuality, that overflow case would 'not be expected'.

Mainly, I just don't like to see static casts thrown about without cause :|

from magistrate.

cz4rs avatar cz4rs commented on July 29, 2024

this was changed to std::size_t (#78):
https://github.com/DARMA-tasking/checkpoint/blob/0a4fd01a2bce6044eab62a49c6a33f2025ba9c9b/src/checkpoint/container/vector_serialize.h#L95

closing the issue

from magistrate.

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.