Slashdot Mirror


User: albrecht

albrecht's activity in the archive.

Stories
0
Comments
4
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 4

  1. Re:You Know on Rogers Shrinks Download Limits As Netflix Arrives · · Score: 1

    Teksavvy and 3web are alternative ISPs that resell Rogers cable internet. You will have to check their sites for availability in your area. Not sure about 3web but teksavvy offers 200GB and Unlimited caps.

  2. Re:Additional items on New Desktop Features Of Next Java · · Score: 2, Informative

    bea now has a 64-bit windows itanium jrockit 1.5.0 now as well. HP has recently added 64-bit hpux pa-risc and itanium too.

  3. Re:What I want explained to me... on C++ Templates: The Complete Guide · · Score: 1
    Here's one way of organizing the code that works with g++. Other compilers have other methods of doing template instantiation so you will have to check the manuals.
    /* Foo.h */
    #ifndef FOO_H
    #define FOO_H
    template<class T>
    class Foo {
    public:
    T foo;
    Foo(T);
    Foo();
    T getFoo();
    };
    #include "Foo.imp.h"
    #endif

    /* Foo.imp.h */
    #ifndef FOO_IMP_H
    #define FOO_IMP_H
    #include "Foo.h"

    template<class T>
    Foo<T>::Foo<T>(T t) {
    foo = t;
    }

    template<class T>
    T Foo<T>::getFoo() {
    return foo;
    }

    #endif

    /* Foo.cpp */
    #include "Foo.h"

    // optional explicit instantiation for int.
    template Foo<int>;

    /* main.cpp */
    #include "Foo.h"

    int main(int argc, char *argv[]) {
    Foo<int> foo = Foo<int>(123);
    int i = foo.getFoo();

    return 0;
    }
  4. Re:Rogue Wave on Portable Coding and Cross-Platform Libraries? · · Score: 1

    I've had the same experience as many of the other people who replied to this comment. The RogueWave tools library is more trouble than its worth. The database and threads libraries are okay but you can probably find a better cross platform threads library these days. I'd stick with the C++ standard lib and boost (www.boost.org) as much as possible and then look at RogueWave as a last resort.