Coder Social home page Coder Social logo

static-vector's People

Contributors

cristi1990an avatar rileylev avatar

Stargazers

Andrii avatar astrolemonade avatar

Watchers

 avatar

Forkers

rileylev

static-vector's Issues

Static asserts for noexcept status of certain operations are failing

We currently have 3 static asserts that are failling:

  • static assert for the move assignment operator being noexcept, which is failing regardless of the template parameter passed to the container, aka even static_tensor<int, ...> is failing

static_assert(std::is_nothrow_move_assignable_v<static_vector<int, 10>>);

  • static assert for the copy constructor/copy assignment operator being noexcept which are failing if the template parameter has a deleted move constructor for some reason?
template<bool IS_NO_THROW>
struct NO_THROW_COPYABLE
{
	NO_THROW_COPYABLE() noexcept = default;
	NO_THROW_COPYABLE(const NO_THROW_COPYABLE&) noexcept(IS_NO_THROW) {}
	NO_THROW_COPYABLE(NO_THROW_COPYABLE&&) = delete;
	NO_THROW_COPYABLE& operator=(const NO_THROW_COPYABLE&) noexcept(IS_NO_THROW) {}
	NO_THROW_COPYABLE& operator=(NO_THROW_COPYABLE&&) = delete;
	~NO_THROW_COPYABLE() noexcept(IS_NO_THROW) {}
};

static_assert(std::is_nothrow_copy_constructible_v<static_vector<NO_THROW_COPYABLE<true>, 10>>);
static_assert(std::is_nothrow_copy_assignable_v<static_vector<NO_THROW_COPYABLE<true>, 10>>);

Any help here would be appreciated.

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.