I'm trying to access protected variables of a template class with different template parameters. A friend declaration with template parameters is giving the following error:
multiple template parameter lists are not allowed
My code is
template<class O_, class P_>
class MyClass {
//multiple template parameter lists are not allowed...
The situation is that I have a dynamic library written in C++ that is wrapped for Python by another dynamic library, also written in C++ (generated by SIP to be specific). The first dynamic library defines a function do_raise, which throws an exception RaiserError, a subclass of std::exception. The second dynamic library, in wrapping do_...
Hi All,
I am trying this code on GNU c++ compiler and unable to understand its behaviour
#include <stdio.h>
int main()
{
int num1 = 1000000000 ;
long num2 = 1000000000 ;
long long num3 ;
//num3 = 100000000000 ;
long long num4 = ~0 ;
printf("%u %u %u",sizeof(num1),sizeof(num2),sizeof(num3)) ;
printf("%d %ld %lld %llu",num1,num2...
I've been reading for an hour now and still don't get what is going on with my application.
Since I am using instances of object with new and delete, I need to manage the memory myself. My application needs to have long uptimes and therefore properly managing the memory consumption is very crucial for me.
Here's the static function I us...
I'm upgrading a game engine's source code from Visual Studio 2003 to Visual Studio 2008. When I try and compile the source code I get the following error.
error C3867: 'UObject::StaticConstructor': function call missing argument list; use '&UObject::StaticConstructor' to create a pointer to member
in the following code:
//----(IMP...
Is it possible to create an image list from multiple bitmaps, or to combine multiple image lists into one.
For sake of simplicity, same element dimensions and transparent color could be assumed.
Reason: I am currently dealing with a very long image list containing four groups of icons and notable "reserved" areas between them. For edi...
Much to my shame, I haven't had the chance to use smart pointers in actual development (the supervisior deems it too 'complex' and a waste of time). However, I planned to use them for my own stuff...
I have situations regarding de-initing a module after they are done, or when new data is loaded in. As I am using pointers, I find my code...
To take apart a pair, the following can be done
boost::bind(&std::pair::second, _1); // returns the value of a pair
What about using combinations of different containers, how can a nested pair be accessed?
For example when I wanted to partition a vector into items contained in a supplemental map and items that where not contained in ...
Hi, folks !
Is there any serial port facilities in Qt ?
If not, which crossplatform (desirable) libraries (for working with serial port and, maybe, with other I/O ports), do you recommend ?
...
Is there a flag I can set so that the compiler (linker?) will output a list of all the functions called by (not just defined in) each separate source file during the compilation(linking) process?
Thanks,
...
Fast report: how to set amount of document copies to be printed via c++ but not via standard parameters interface.
...
I am trying to share some data across DLLs in a project which has an extremely complicated dependency structure (numberous DLLs).
I want to be able to associate a key with some data in one part of the application, and then extract that data by supplying the appropriate key in some other part of the app. In a way, one can say that I loo...
I want to be able to easily navigate my c++ src code on a local Linux box (red hat as3). To this end, I'm planing to in tall LXR. However, installation docs are sort of confusing. Can someone either explain or provide a link to an easy installation manual, recommended setups, etc
Thanks
...
Hello
I have IWebBrowser2 ctrl embedded into my own dialog. I want to simply
display a promo banner within it from my url. How to disable all popup
menu items from the control and force it to open links in new window
(currently when I click on link in the banner, it is being opened
within the same control).
Regards
Dominik
...
I have several Gb of sample data captured 'in-the-field' at 48ksps using an NI Data Acquisition module. I would like to create a WAV file from this data.
I have done this previously using MATLAB to load the data, normalise it to the 16bit PCM range, and then write it out as a WAV file. However MATLAB baulks at the file size as it does ...
Hello
I'm looking for a RTP/RTSP library in C++. I found pjsip but it is more C-style. I'm looking for more OO library.
Thanks
...
Im a trying to use pantheios logging framework from inside a c++ dll. I have successfully built the dll and it executes through my test application (C++ MFC Application).
I have used implicit linking with the following includes:
#include <pantheios/implicit_link/core.h>
#include <pantheios/implicit_link/fe.simple.h>
#include <pantheio...
How do you set application icon for application made in QtCreator. Is there some easy way?
...
Hi,
I just wonder if there is some convenient way to detect if overflow happens to any variable of any default data type used in a C++ program during runtime? By convenient, I mean no need to write code to follow each variable if it is in the range of its data type every time its value changes. Or if it is impossible to achieve this, h...
I was recently made aware that thread local storage is limited on some platforms. For example, the docs for the C++ library boost::thread read:
"Note: There is an implementation specific limit to the number of thread specific storage objects that can be created, and this limit may be small."
I've been searching to try and find out the ...