473,383 Members | 1,853 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Can you compile this code for me please?

I was wondering if anyone could compile this code for me on VC.

The problem that I've run into is that VC++6 does not support templates
fully, and so, I cannot get this to compile, which relies heavily on
templates. So, if someone can compile the explicit specialication for me
with VC++7, and then I could try to use it in VC++6 (probably), if object
files are interconvertible, as in I can use object files of VC++7 on
VC++6, then?

http://www.geocities.com/dhruvbird/nstl0.2.zip
and I will be #including pool_alloc.hpp in some .cpp file, so I will need
to explicitly specialize pool_alloc (which is a typedef for
pool_allocator<nstd::allocator<int> >). So, if someone could send me the
object file, I'd be really happy :-)
Thnaks in Advance,
-Dhruv.


Jul 19 '05 #1
2 1728
On Mon, 21 Jul 2003 10:50:49 +0000, Alf P. Steinbach wrote:
On Mon, 21 Jul 2003 15:42:31 +0500, "Dhruv" <dh*******@gmx.net> wrote:
I was wondering if anyone could compile this code for me on VC.

The problem that I've run into is that VC++6 does not support templates
fully, and so, I cannot get this to compile, which relies heavily on
templates. So, if someone can compile the explicit specialication for me
with VC++7, and then I could try to use it in VC++6 (probably), if object
files are interconvertible, as in I can use object files of VC++7 on
VC++6, then?

http://www.geocities.com/dhruvbird/nstl0.2.zip
and I will be #including pool_alloc.hpp in some .cpp file, so I will need
to explicitly specialize pool_alloc (which is a typedef for
pool_allocator<nstd::allocator<int> >). So, if someone could send me the
object file, I'd be really happy :-)


Try instead to rewrite partial template specialization.

For techniques that can be used for that see e.g. the port
of Loki to Visual C++.


Well, I did port it to VC++6, but am not entirly happy with the effort,
because much of the power of templates is lost here :-(
VC can't even handle member templates?

Regards,
-Dhruv.



Jul 19 '05 #2
On Mon, 21 Jul 2003 21:06:32 +0400, Michael Kochetkov wrote:
[...]......
VC can't even handle member templates? VC 6.0 really can, partially. You shall put all the member templates code at
the point of declaration if I do not mix anything.

Thanks, I'll try that out too. :-)
And you might get more help in the VC compiler group of course.

Yes, but I have least interest in porting some code to a compiler that
*_claims_* to support templates.
As a last resort I shall go and visit that place. :-)
Thanks again :-)
-Dhruv.


Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: banjo123 | last post by:
Dear java.help: I just started learning java and was trying to compile some java sourc from the Javascript World Submission webpage. I know I have loaded m JDK successfully since I can compile...
17
by: newbiecpp | last post by:
I have hard time to understand run-time environment. Let assume that I have a program that has a simple variable alpha. When this variable is statically allocated, the compiler can use the...
5
by: Brice Prunier | last post by:
Here under 4 schemas i'm working with ( it may be long: sorry...) The context is the following : Resident.xsd imports Person.xsd and includes Common.xsd ( anonimous schema: no TargetNamespace )...
10
by: Chris LaJoie | last post by:
Our company has been developing a program in C# for some time now, and we haven't had any problems with it, but just last night something cropped up that has me, and everyone else, stumped. I...
6
by: Thomas Connolly | last post by:
I have 2 pages referencing the same codebehind file in my project. Originally the pages referenced separate code behind files. Once I changed the reference to the same file, everything worked...
1
by: electrixnow | last post by:
Help!, I need to compile this code with static libs so it run on another XP machine that does'nt have MS Studio installed. When I compile now I get an ERROR: 1>------ Rebuild All started:...
13
by: Genady Beryozkin | last post by:
Hi, I've read the article at http://msdn2.microsoft.com/en-us/library/ms235211.aspx about how to compile MFC/ATL code, but I still have one question unanswered: Should I have the CComModule...
6
by: Howard Gardner | last post by:
/* As it sits, this program won't compile for me. It will compile using either of the versions of tpt that I've commented out. Which versions SHOULD compile? I think that the code is...
2
by: wong_powah | last post by:
#include <vector> #include <iostream> using std::cout; using std::vector; enum {DATASIZE = 20}; typedef unsigned char data_t;
5
by: Michael | last post by:
Hi All, I have three very simple files as below. When I try and compile these with g++ -ansi -Wall -pedantic -o crap Base.h Other.h I get an error: Base.h:7: internal compiler error:...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.