--- src/kernel/pdfwriter.cc.orig 2016-06-11 06:46:45.675949000 +0900 +++ src/kernel/pdfwriter.cc 2016-06-11 06:47:46.394754000 +0900 @@ -110,7 +110,7 @@ printf("Unsupported context.\n"); return; } - shared_ptr progressContext= + boost::shared_ptr progressContext= dynamic_pointer_cast(context); size_t total=progressContext->getScope()->total; if(!started) @@ -427,7 +427,7 @@ // contain binary data if(obj.isStream()) { - shared_ptr filter = FilterStreamWriter::getInstance(obj); + boost::shared_ptr filter = FilterStreamWriter::getInstance(obj); assert(filter->supportObject(obj)); filter->compress(obj, ref, stream); }else @@ -502,11 +502,11 @@ size_t index=0; // creates context for observers - shared_ptr scope(new OperationScope()); + boost::shared_ptr scope(new OperationScope()); scope->total=objectList.size(); scope->task=CONTENT; - shared_ptr context(new ChangeContext(scope)); - shared_ptr newValue(new OperationStep()); + boost::shared_ptr context(new ChangeContext(scope)); + boost::shared_ptr newValue(new OperationStep()); // prepares offTable and writes objects for(i=objectList.begin(); i!=objectList.end(); i++, index++) @@ -659,10 +659,10 @@ utilsPrintDbg(DBG_DBG, "Writing "< scope(new OperationScope()); + boost::shared_ptr scope(new OperationScope()); scope->total=subSectionTable.size(); scope->task=TRAILER; - shared_ptr context(new ChangeContext(scope)); + boost::shared_ptr context(new ChangeContext(scope)); // writes all subsection size_t index=1; @@ -704,7 +704,7 @@ } // notifies observers - shared_ptr newValue(new OperationStep()); + boost::shared_ptr newValue(new OperationStep()); newValue->currStep=index; notifyObservers(newValue, context); }