Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

It's been a long time since

Name: Anonymous 2008-02-06 12:12

we've had a thread on


SEPPLES

Name: Anonymous 2008-02-06 12:39

NO EXCEPTIONS

Name: Anonymous 2008-02-06 17:53

-fno-exceptions

Name: Anonymous 2008-02-06 18:44

Test

Name: Anonymous 2008-02-06 19:11


#ifndef GUARD_AWESOME_NULL_HH_
#define GUARD_AWESOME_NULL_HH_

namespace awesome {
    namespace detail {
        namespace {
            struct null {
                template<typename T> operator T *() const {
                    return 0;
                }

                bool operator!() const {
                    return true;
                }

                const null &operator&() const { return *this; }
                const null &operator*() const { return *this; }

                static const null instance;

                private:
                null() {}
                null(const null &) {}
                null &operator=(const null &) { return *this; }
            };
            const null null::instance;
        }
    }
    static const detail::null &null = detail::null::instance;
}

#endif /* GUARD_AWESOME_NULL_HH_ */

Name: Anonymous 2008-02-06 19:28

Name: Anonymous 2008-02-06 19:40

C++ is defective.

Source: http://yosefk.com/c++fqa/

Name: Anonymous 2008-02-06 19:43

C++ programmers don't have any friends.

Quote:
[14.1] What is a ``friend''?
[14.2] Do ``friends'' violate encapsulation?
Source: http://yosefk.com/c++fqa/friend.html

Name: Anonymous 2009-02-25 7:02

4 What the fuck   dos it do.

Name: Anonymous 2009-02-25 8:11

If /prog/ could create a language, would we end up with C#?

Name: Anonymous 2010-11-15 20:23


Don't change these.
Name: Email:
Entire Thread Thread List