473,396 Members | 1,693 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,396 software developers and data experts.

float_expr not supported by dump_expr .. (wha?)

Hi World!

I have a general function that takes a (vector<double> &) as parameter.In
the case were I only need 2D vectors, I made the following class :

class Data2D : public vector<double> {
public:
Data2D(double x, double y) {
push_back(x); push_back(y);
}
};

Using this, I though I could use my original fonction in the following
way:

fonction(Data2D(0.2, 2.3));

But when I compile using gcc version 2.96 20000731 (Red Hat Linux 7.3
2.96-110) (I wish I could update my PC at work!) I get the following
message :

sorry, not implemented: 'float_expr' not supported by 'dump_expr'

I solved the problem by taking a copy of the vector (vector<double>)
instead in my original fonction. Can anyone tell me what I'm doing wrong?
Is it that I should never pass the reference of a temporary variable? I
only did so to avoid copying the vector to the fonction (thus saving a
little memory, I hope).

Thanks.

Martin Lepage
Jul 19 '05 #1
2 1791

"Martin Lepage" <zu****@mad.scientist.com> wrote in message news:gO*******************@charlie.risq.qc.ca...

fonction(Data2D(0.2, 2.3));


What is the declaration of this function?
It's almost always a good idea to provide a complete minimal program
that demonstrates your problem when asking these questions.
Jul 19 '05 #2
On Thu, 02 Oct 2003 11:53:21 -0400, Ron Natalie wrote:

Thanks for your info and for the quick reply. I have tried to reproduce
the problem in a simple short program to post here but I am unable to get
the same weird error message. If I ever do, I'll post it here :)
"Martin Lepage" <zu****@mad.scientist.com> wrote in message
news:gO*******************@charlie.risq.qc.ca...

fonction(Data2D(0.2, 2.3));


What is the declaration of this function? It's almost always a good idea
to provide a complete minimal program that demonstrates your problem
when asking these questions.

Jul 19 '05 #3

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

Similar topics

2
by: Mark Carter | last post by:
I'm trying to create a mail server in Twisted. I either get SMTPSenderRefused or SMTPException: SMTP AUTH extension not supported by server. What do I need to do to get it to work?
1
by: Dan | last post by:
Hi, Is the method 'insertAdjacentText' supported by netscape? I 'm afraid of not. Does anyone know the equivalent method? By the way, does it exist something like a equivalence tabel between IE...
5
by: eadams | last post by:
I've been tasked with writing an application in VB.Net that will manipulate messages in a user's Inbox. My Exchange admin prefers that I use MAPI; I don't really care, but I want this to be as...
4
by: Robert | last post by:
Hi, which DOM version (level) should I learn? I've seen that there is a DOM level 3, but is there any support for it already? -- Rob
1
by: Tomas Vera | last post by:
Hello All, In an effort to prepare my WebApp for localization, I have included the following lines in some of my ASPX pages (the "lab mice" of my web app). --- Code snippet -----...
3
by: Stephen R. G. Fraser | last post by:
Are or will delegating constructors (constructors that can call sibling constructors) be available for ref classes or only for native classes? The CLI/C++ specs seems to say that it is a native...
4
by: David | last post by:
Hello When I try to open a connection to a sql server database from my aspnet app I get the following exception message: 'ResourcePool' is not supported on the current platform. I can connect OK...
7
by: Fister | last post by:
I'm reading Professional C# (Wrox) and stumbled across: "Some features are supported by.NET but not by C#, and you might be surprised to learn that some features of the C# language are not...
0
by: joeller | last post by:
On October 13, 2006 Mark Rae wrote Hi, Firstly, I have not the slightest intention of using framesets - the reason for this post is merely to ask for assistance in furthering my understanding of...
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...
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...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
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...
0
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...
0
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,...

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.