Segmentation Fault In Recurisve Structure With Smart Pointer

A singly linked list implemented with smart pointer, which has a reference to next, can easily cause Stack Overflow at its destruction because the destructor of the next, and the next, and the next, are called recursively. Here's the code. #in… more »

So far, so bad.

I found a couple of things. A couple of bad things. 1. shared_ptr is not thread safe * it was stack overflow by recursive destruction Here's the code to reproduce. The reason follows. SPIntSLList.h #ifndef INT_SINGLY_LINKEDLIST #define IN… more »

Lock-free reference counting smart pointer

With GCC 4.4, I tested how atomic types and operations of c++0x work by implementing lock-free reference counting smart pointer. TsPersistentSmartPointer.h #ifndef PERSISTENT_SMART_POINTER #define PERSISTENT_SMART_POINTER #include <cstdato… more »

Google Visualization API On Your Site Example

This is a Google Visualization Gadget example that is hosted on my site. SONY's sales&op_profits by segments since 1996. Enjoy! more »

Visualize Your Data with Google Visualization API

Today, here at Google I/O 2nd day, a new Google Visualization API was announced. What's new? 1. events 2. gadget.draw() Google Visualization Gadget supports selection events so that a developer can respond to end users. With draw() method… more »

:: Next >>

Free Blog Themes and Free Blog Templates