• How to use constant in class namespace as the array and template parameters? 2015-01-26

    I want to use the constant in class namespace as the size of a static array and the template parameter in another class. I have follow errors // MS VS 2010 C++98 // A.h class A { public: const static int someNumber; }; // A.cpp #include <A.h> c

    Tags: constants, compiler errors, static members, c++98
  • Basic shared_count variant 2014-08-12

    Since I need a special refcounting mechanism in a project (which does not always expose the pointer), I would like to implement my object handling on top of basic refcounting. libstdc++ and libc++ both use a class std::__shared_count for the basic (t

    Tags: boost, c++98
  • C++ type checking error 2013-08-30

    I've followed the instructions I got from my last post and re-wrote my code. My header file #include <iostream> #include <string> #include <vector> #include <cstdio> #include <typeinfo> #include "Tour.h" #include "Guided

    Tags: types, c++98
  • Why is std::list bigger on c++11? 2012-04-08

    with this code: #include <iostream> #include <list> int main() { std::cout << sizeof(std::list<void*>) << std::endl; }; I managed to notice that on GCC 4.7 the size of std::list<void*> on C++98 is 16 bytes, and its

    Tags: gcc, c++11, c++98
  • std::copy/memcpy/memmove optimizations 2012-01-18

    I looked into the GCC STL (4.6.1) and saw that std::copy() uses an optimized version in case the builtin __is_trivial() evaluates to true. Since the std::copy() and std::reverse_copy() templates are very useful for copying elements in arrays, I would

    Tags: stl, c++11, c++98
  • Vector of fixed array in c++98 2011-08-13

    I need to store an indeterminable number of triangles in a vector, therefore, it would be something like: std::vector<Point[3]> But that is not valid C++98. What are other solutions that do not involve a triangle struct? Thanks --------------So

    Tags: c++98
  • What is the correct way to initialize a Matrix in C++98? 2009-12-02

    I'm not programmer I want to compile Inkscape in win32, and stumbled on these error messages: ui/dialog/filedialogimpl-win32.cpp:1379: error: in C++98 'matrix' must be initialized by constructor, not by '{...}' make[1]: *** [ui/dialog/filedialogimpl-

    Tags: c#, mingw, c++98

Copyright (C) dskims.com, All Rights Reserved.

processed in 4.834 (s). 9 q(s)