By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,798 Members | 1,766 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,798 IT Pros & Developers. It's quick & easy.

Problems using Loki with MSVC

P: n/a
Pep
The following code from the Loki TypeManip.h header file is causing problems
with MSVC version 6.0

template <unsigned i>
struct TypeTag
{
struct Inner {char c[i];};
typedef Inner X;
STATIC_SIZE_ASSERT(X, i);
};

Any ideas how to solve this?

TIA,
Pep.

Jul 23 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
"Pep" <pe*@nowhere.com> wrote in message
news:d3**********@pop-news.nl.colt.net
The following code from the Loki TypeManip.h header file is causing
problems with MSVC version 6.0

template <unsigned i>
struct TypeTag
{
struct Inner {char c[i];};
typedef Inner X;
STATIC_SIZE_ASSERT(X, i);
};

Any ideas how to solve this?

TIA,
Pep.

VC++ 6.0 has poor support for templates. The original Loki won't compile on
it. There is a port to VC++ 6.0 but it is not fully compatible with the
original Loki

http://fara.cs.uni-potsdam.de/~kaufmann/?page=lokiport

The only really satisfactory solution is to upgrade VC++ (current version is
7.1 and 8.0 is in Beta) or switch to another compiler.
--
John Carson

Jul 23 '05 #2

P: n/a
Pep
John Carson wrote:
"Pep" <pe*@nowhere.com> wrote in message
news:d3**********@pop-news.nl.colwitht
The following code from the Loki TypeManip.h header file is causing
problems with MSVC version 6.0

template <unsigned i>
struct TypeTag
{
struct Inner {char c[i];};
typedef Inner X;
STATIC_SIZE_ASSERT(X, i);
};

Any ideas how to solve this?

TIA,
Pep.

VC++ 6.0 has poor support for templates. The original Loki won't compile
on it. There is a port to VC++ 6.0 but it is not fully compatible with the
original Loki

http://fara.cs.uni-potsdam.de/~kaufmann/?page=lokiport

The only really satisfactory solution is to upgrade VC++ (current version
is 7.1 and 8.0 is in Beta) or switch to another compiler.


I seem to have version 5d of this already installed. The crazy thing is
that a colleague of mine iwth a identical setup can build the system!

Thanks,
Pep.

Jul 23 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.