473,610 Members | 2,006 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 interconvertibl e, 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 1740
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 interconvertibl e, 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_allocato r<nstd::allocat or<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
2247
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 other examples but when I try t compile the following code, I get several errors. I typed "javac J1.java(source file name)" Any feedback is appreciated.
17
3117
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 absolute address of alpha to access to it. What confuses me is that when the variable is dynamically allocated, how does the compiler implement it? We know the address of the variable until run-time. During the compilation, how can we access to the...
5
3806
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 ) Person.xsd includes Common-Naming.xsd ( anonimous schemas ) Common-Naming.xsd includes common.xsd ( both are anonimous schemas ) Compilation of Resident.xsd raise the following exception: "System.Xml.Schema.XmlSchemaException: The attribute 'oid'...
10
19705
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 have a struct that contains several different types of data. This struct is used throuout the program. Now, when I compile, I get 6 errors, all of them "Use of possibly unassigned field 'awayTime'" or "Use of possibly unassigned field 'intlTime'"....
6
2844
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 fine while the file was in the project directory. When the obsolete file was removed from the project directory, my application will no longer compile. Can someone please help with this issue? Thank in advance, Tom
1
5379
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: Project: drawing_control, Configuration: Release Win32 ------ 1>Deleting intermediate and output files for project 'drawing_control', configuration 'Release|Win32'
13
2220
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 _Module; definition and the CInitInstance()
6
1381
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 interesting because I think that it is on the path to building a useful non-intrusive type introspection facility. The version that uses "has" indicates the direction.
2
386
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
1958
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: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate.
0
8146
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8591
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8558
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8237
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7031
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6069
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5526
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2541
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
1407
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.