I have a debian/control file which includes:
Build-Depends: ... libboost1.35-dev, libboost-date-time1.35-dev, ...
This stops the package from building on modern Ubuntu systems.
I could just change all the 1.35s for 1.38s and then it would work on modern Ubuntu, but not older versions.
I would like to do something like:
Build-Depend...
I am new to C++ programming, but I have experience in Java. I need guidance on how to pass objects to functions in C++.
Do I need to pass pointers, references, or non-pointer and non-reference values? I remember in Java there are no such issues since we pass just the variable that holds reference to the objects.
It would be great if yo...
Anyone know of a good library for editing PE files? I tried PeLib but it is very basic and you pretty much have to do everything anyways.
...
I'm currently putting together an application that relies heavily on shared_ptr and everything looks good so far - I've done my homework and have a pretty good idea of some of the pitfalls of using shared_ptrs.
One of the most recognised problems with shared_ptr is cyclic dependencies - these issues can be solved by storing weak_ptrs th...
Does anyone have an experience in processing (reading) ESRI shapefiles (http://en.wikipedia.org/wiki/Shapefile) from C++?
I have found at least 2 open source libraries: ShapeLib C library (http://shapelib.maptools.org/) and OGR (http://www.gdal.org/ogr/). Which one is better? Does anybody used one of them? How about the experience?
...
I am working on a software where i have to create a graph (using boost::adjacency_list).
The incremental insertion of vertices takes an extremely long time.
Until now, i hadn't worked on the issue, because the use of STLport made this problem go away.
I have now migrated my work to Visual Studio 2008, but can't take the time to go on us...
I'm in the process of writing a template library for data-caching in C++ where concurrent read can be done and concurrent write too, but not for the same key. The pattern can be explained with the following environment:
A mutex for the cache write.
A mutex for each key in the cache.
This way if a thread requests a key from the cache ...
The history of Encoding Schemes / multiple Operating Systems and Endian-nes have led to a mess in terms of encoding all forms of string data (--i.e., all alphabets); for this reason protocol buffers only deals with ASCII or UTF-8 in its string types, and I can't see any polymorphic overloads that accept the C++ wstring. The question then...
Hi all,
I'm new here, and have a question about opengl in Qt4, which I've been learning over the last few months.
Particularly, I'm seeking advice on the best way to compose a scene in a good object-oriented fashion using the QGLWidget. I'd ideally like every item in my scene to be sub-classes of a super 'Entity' class. Then in my main...
How come I can't instantiate an object of type Foo with above constructor?
I have a class Bar that uses an internal typedef (as a workaround for "template typedefs") and intend to use it in a constructor as below (CASE 1).
However, I don't seem to get it to compile. Is this legal C++?
CASE 2 seems to suggest the problem is related to th...
In my code I have effectively the following:
wchar_t* buffer = new wchar_t[size];
// bonus irrelevant code here
delete[] reinterpret_cast<char*>( buffer );
Types in question are all built-in and so they have trivial destructors. In VC++ the code above works allright - new[] just allocates memory, then delete[] just frees it.
Is it ac...
Possible Duplicates:
What is Type-safe?
What is type-safety?
I was reading about c++ vectors and it was mentioned that memcpy and printf functions from C are not type safe. Article here: http://en.wikipedia.org/wiki/Vector_(C%2B%2B).
Question: In simple English, what is type safety and what are the "type safe" alternatives?
...
I know this is a big .NET forum, but does anybody use SCA? If so, what C++ SCA runtimes do you use. I've been looking at Apache's Tuscany Native, but there hasn't been a relase since May 2007! Has SCA been reduced to just another Java framework by the lack of non-java implementations?
I ask because I'm trying to develop a distribut...
Hi, This is doing my head in.
I'm trying to implement some "lock-free" code and am using CAS (gcc __sync_val_compare_and_swap) to do he heavy lifting.
My problem can be shown with the following code.
volatile bool lock;
void *locktest( void *arg )
{
for ( int i = 0 ; i < 100000 ; ++i )
{
// acquire a lock
while...
bool Win64bit = (sizeof(int*) == 8) ? 1 : 0;
I need this so my app can use Windows registry functions properly (or do i need?).
So am i doing it right ?
...
While i'm developing in C/C++ and Java, i simply make a compile.bat script that does everything, that's fine for me. Why should i use make and why should i use ant?
...
Can somebody point me in the right direction of how to draw a multiple lines that seem connected? I found vtkLine and its SetPoint1 and SetPoint2 functions. Then I found vtkPolyLine, but there doesn't seem to be any add, insert or set function for this. Same for vtkPolyVertex.
Is there a basic function that allows me to just push some p...
I've seen numerous arguments that using a return value is preferable to out parameters. I am convinced of the reasons why to avoid them, but I find myself unsure if I'm running into cases where it is unavoidable.
Part One of my question is: What are some of your favorite/common ways of getting around using an out parameter? Stuff alon...
I've compiled an application that uses WebKit on Leopard (10.5).
The application is 32 bit.
I've bundled 32 bit versions of WebKit/WebCore etc with the app.
If I run it on Snow Leopard (10.6) none of the CSS 3d transforms work. 3D transforms work in SL's Safari.
I have a feeling that my app isn't able to link with some of the 3D graph...
Is it required in standard for class specific new, new[], delete, and delete[] to be static.
Can i make them non-static member operators. And why is it required for them to be static
...