Giter Club home page Giter Club logo

bigcub's People

Contributors

cubox avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

progval

bigcub's Issues

'const' type qualifier on return type has no effect

bigcub.h++:51:27: Type::const_reference const operator[](size_type n) const;
bigcub.h++:53:27: Type::const_reference const at(size_type n) const;
bigcub.c++:73:31: BigCub::Type::const_reference const BigCub::operator[](size_type n) const
bigcub.c++:81:31: BigCub::Type::const_reference const BigCub::at(size_type n) const {

use of undeclared identifiers 'CHAR_BIT' and 'ULLONG_MAX'

progval@ganymede:/tmp/BigCub(master)$ clang++ -Ofast -std=c++1y *.c++ -I.
In file included from bigcub.c++:7:
In file included from ./vmanip.h++:46:
./vmanip.t.h++:19:38: error: use of undeclared identifier 'CHAR_BIT'
        toReturn.resize((sizeof(n) * CHAR_BIT) + 1);
                                     ^
./vmanip.t.h++:22:37: error: use of undeclared identifier 'CHAR_BIT'
        toReturn.resize(sizeof(n) * CHAR_BIT);
                                    ^
./vmanip.t.h++:26:28: error: use of undeclared identifier 'CHAR_BIT'
    for (; i < sizeof(n) * CHAR_BIT; ++i) {
                           ^
./vmanip.t.h++:46:46: error: use of undeclared identifier 'CHAR_BIT'
    for (; (i < n.size()) && i < sizeof(T) * CHAR_BIT; ++i) {
                                             ^
./vmanip.t.h++:50:48: error: use of undeclared identifier 'CHAR_BIT'
    for (; n.back() == true && i < sizeof(T) * CHAR_BIT; ++i) {
                                               ^
5 errors generated.
In file included from tests.c++:16:
In file included from ./bigcub.h++:16:
In file included from ./vmanip.h++:46:
./vmanip.t.h++:19:38: error: use of undeclared identifier 'CHAR_BIT'
        toReturn.resize((sizeof(n) * CHAR_BIT) + 1);
                                     ^
./vmanip.t.h++:22:37: error: use of undeclared identifier 'CHAR_BIT'
        toReturn.resize(sizeof(n) * CHAR_BIT);
                                    ^
./vmanip.t.h++:26:28: error: use of undeclared identifier 'CHAR_BIT'
    for (; i < sizeof(n) * CHAR_BIT; ++i) {
                           ^
./vmanip.t.h++:46:46: error: use of undeclared identifier 'CHAR_BIT'
    for (; (i < n.size()) && i < sizeof(T) * CHAR_BIT; ++i) {
                                             ^
./vmanip.t.h++:50:48: error: use of undeclared identifier 'CHAR_BIT'
    for (; n.back() == true && i < sizeof(T) * CHAR_BIT; ++i) {
                                               ^
tests.c++:25:31: error: use of undeclared identifier 'ULLONG_MAX'
    for (uintmax_t i = 0; i < ULLONG_MAX; ++i) {
                              ^
tests.c++:177:40: error: use of undeclared identifier 'CHAR_BIT'
    for (size_t i = 0; i < sizeof(T) * CHAR_BIT; ++i) {
                                       ^
7 errors generated.
In file included from vmanip.c++:10:
In file included from ./vmanip.h++:46:
./vmanip.t.h++:19:38: error: use of undeclared identifier 'CHAR_BIT'
        toReturn.resize((sizeof(n) * CHAR_BIT) + 1);
                                     ^
./vmanip.t.h++:22:37: error: use of undeclared identifier 'CHAR_BIT'
        toReturn.resize(sizeof(n) * CHAR_BIT);
                                    ^
./vmanip.t.h++:26:28: error: use of undeclared identifier 'CHAR_BIT'
    for (; i < sizeof(n) * CHAR_BIT; ++i) {
                           ^
./vmanip.t.h++:46:46: error: use of undeclared identifier 'CHAR_BIT'
    for (; (i < n.size()) && i < sizeof(T) * CHAR_BIT; ++i) {
                                             ^
./vmanip.t.h++:50:48: error: use of undeclared identifier 'CHAR_BIT'
    for (; n.back() == true && i < sizeof(T) * CHAR_BIT; ++i) {
                                               ^
5 errors generated.

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.