[Bug 417] New: Compile error when configuring Read/WriteBufferPort connections

For more information about this bug, visit
A new bug was added:
Summary: Compile error when configuring Read/WriteBufferPort
connections
Product: RTT
Version: 1.2.0
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Real-Time Toolkit (RTT)
AssignedTo: orocos-dev [..] ...
ReportedBy: peter [dot] soetens [..] ...

When trying to change the buffer type in a buffered data connection like this:

ReadBufferPort vport(...args );
// ...
vport = new BufferLockFree(20);

Will result in a compilation error:

Plant.cpp:27: fout: no matching function for call to

[Bug 417] Compile error when configuring Read/WriteBufferPort co

For more information about this bug, visit

peter [dot] soetens [..] ... changed:

What |Removed |Added
---------------------------------------------------------------------------
Target Milestone|--- |1.2.1
Resolution| |FIXED
Status|NEW |RESOLVED

------- Comment #1 from peter [dot] soetens [..] ... 2007-06-04 13:01

$ svn di BufferConnectionInterface.hpp
Index: BufferConnectionInterface.hpp
===================================================================
--- BufferConnectionInterface.hpp (revision 28234)
+++ BufferConnectionInterface.hpp (working copy)
@@ -60,6 +60,14 @@
*/
virtual ReadInterface* read() = 0;

+ /**
+ * Let the connection use a new Buffer implementation.
+ * This may lead to information loss if called when the connection
+ * is in use.
+ * @param doi The new buffer to use.
+ * @post \a doi is acquired by this connection.
+ */
+ virtual void setImplementation( BufferInterface* doi ) = 0;
};

/**
@@ -77,6 +85,14 @@
*/
virtual WriteInterface* write() = 0;

+ /**
+ * Let the connection use a new Buffer implementation.
+ * This may lead to information loss if called when the connection
+ * is in use.
+ * @param doi The new buffer to use.
+ * @post \a doi is acquired by this connection.
+ */
+ virtual void setImplementation( BufferInterface* doi ) = 0;
};

/**
sspr@lt00129:~/src/Orocos/trunk/rtt/src
$ svn ci BufferConnectionInterface.hpp -m"Fix bug #417: Compile error when
configuring Read/WriteBufferPort connections.
> Add pure virtuals in BufferConnection base classes.
> "
Sending BufferConnectionInterface.hpp
Transmitting file data .
Committed revision 28236.

--
(this mail is best viewed with a fixed font)
Configure bugmail: http://www.fmtc.be/orocos-bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
--
Orocos-Dev mailing list
Orocos-Dev [..] ...
http://lists.mech.kuleuven.be/mailman/listinfo/orocos-dev

Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm