Click here to Skip to main content
15,883,737 members
Articles / Programming Languages / C++

RMI for C++

Rate me:
Please Sign up or sign in to vote.
4.87/5 (113 votes)
6 Aug 2009CPOL8 min read 814.7K   4.6K   153  
User-friendly remote method invocation in C++.
#ifndef _UTIL_PLATFORM_LIBRARY_CW80_LIBRARY_HPP_
#define _UTIL_PLATFORM_LIBRARY_CW80_LIBRARY_HPP_

// Library specific stuff for metrowerks codewarrior 8.0

#if defined(SF_UTIL_DEBUG_NEW) && defined(new)
#undef new
#define REMEMBER_TO_TURN_DEBUGNEW_BACK_ON
#endif

#include <hash_map>
#include <stdlib.h>
#include <string.h>
#include <wchar.h>

#ifdef REMEMBER_TO_TURN_DEBUGNEW_BACK_ON
#define new SF_UTIL_DEBUG_NEW
#undef REMEMBER_TO_TURN_DEBUGNEW_BACK_ON
#endif


namespace Platform {

    namespace Library {

        template<typename Key, typename Value, typename Hash>
        struct hash_map_t {
            typedef Metrowerks::hash_map<Key, Value, Hash> Val;
        };

    } // namespace Library

} // namespace Platform

#endif _UTIL_PLATFORM_LIBRARY_CW80_LIBRARY_HPP_

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Australia Australia
Software developer, from Sweden and now living in Canberra, Australia, working on distributed C++ applications. When he is not programming, Jarl enjoys skiing and playing table tennis. He derives immense satisfaction from referring to himself in third person.

Comments and Discussions