Loki/Borland
rani_sharoni 4130d4f2ea Fix various issues related to stability when using highly compliant compilers such as Comeau 4.3.0.1, VC7.1 and GCC 3.2
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@109 7ec92016-0320-0410-acc4-a06ded1c099a
2003-02-27 20:22:43 +00:00
..
AbstractFactory.h No message 2002-08-23 07:22:07 +00:00
AssocVector.h No message 2002-08-23 07:22:07 +00:00
EmptyType.h No message 2002-08-23 07:22:07 +00:00
Factory.h Fix various issues related to stability when using highly compliant compilers such as Comeau 4.3.0.1, VC7.1 and GCC 3.2 2003-02-27 20:09:08 +00:00
Functor.h Fixed my previous typo. 2003-02-04 22:33:56 +00:00
HierarchyGenerators.h No message 2002-08-23 07:22:07 +00:00
LokiTypeInfo.h Fix various issues related to stability when using highly compliant compilers such as Comeau 4.3.0.1, VC7.1 and GCC 3.2 2003-02-27 20:09:08 +00:00
MultiMethods.h Fix various issues related to stability when using highly compliant compilers such as Comeau 4.3.0.1, VC7.1 and GCC 3.2 2003-02-27 20:09:08 +00:00
NullType.h No message 2002-08-23 07:22:07 +00:00
readme.txt No message 2002-08-23 07:22:07 +00:00
Singleton.cpp No message 2002-08-23 07:22:07 +00:00
Singleton.h No message 2002-08-23 07:22:07 +00:00
SmallObj.cpp Fix various issues related to stability when using highly compliant compilers such as Comeau 4.3.0.1, VC7.1 and GCC 3.2 2003-02-27 20:09:08 +00:00
SmallObj.h No message 2002-08-23 07:22:07 +00:00
SmartPtr.h No message 2002-08-23 07:22:07 +00:00
static_check.h No message 2002-08-23 07:22:07 +00:00
Threads.h No message 2002-08-23 07:22:07 +00:00
Tuple.h No message 2002-08-23 07:22:07 +00:00
Typelist.h Fix various issues related to stability when using highly compliant compilers such as Comeau 4.3.0.1, VC7.1 and GCC 3.2 2003-02-27 20:09:08 +00:00
TypeManip.h Fix various issues related to stability when using highly compliant compilers such as Comeau 4.3.0.1, VC7.1 and GCC 3.2 2003-02-27 20:09:08 +00:00
TypeTraits.h No message 2002-08-23 07:22:07 +00:00
Visitor.h No message 2002-08-23 07:22:07 +00:00

Last update: August 9, 2002

Directions:

To use Loki, simply extract the files from the archive, give your compiler access to their path, and include them appropriately in your code via #include.

If you use the small object allocator directly or indirectly (through the Functor class) you must add SmallObj.cpp to your project/makefile.

If you use Singletons with longevity you must add Singleton.cpp to your project/makefile.

Compatibility:

Loki has been tested with Metrowerks CodeWarrior Pro 6 under Windows. CodeWarrior has a problem with the Conversion template (see TypeManip.h) and, though it compiles it, it doesn't provide correct results. Consequently, the DerivedToFront algorithm in Typelist.h does not function. This affects the static dispatcher in Multimethods.h. As a fix, you must order the types (putting the most derived ones in the front) when providing the typelist argument to StaticDispatcher.

Also, Loki has been ported to g++ 2.95.3 by Nick Thurn.


This is a ported version of Loki to Borland C++ Builder 6.0. However, it uses standard C++, so it should work on the other compilers, as well.

More info:

http://moderncppdesign.com