Boost-for-Android icon indicating copy to clipboard operation
Boost-for-Android copied to clipboard

Error: 'shared_ptr' in namespace 'boost' does not name a type

Open karthikeyan-kandasamy opened this issue 9 years ago • 1 comments

While I was building a Caffe, In Caffe_classifier.cpp contains ( boost::shared_ptrcaffe::Layer netLayer=net->layer_by_name("eyes"); boost::dynamic_pointer_castcaffe::MemoryDataLayer(netLayer)->Reset((float*)data,&label,1); ) these lines throw issues like below ,

Error 1: CAFFE_classifier.cpp:85:82: error: conversion from 'const std::shared_ptrcaffe::Layer' to non-scalar type 'boost::shared_ptrcaffe::Layer' requested boost::shared_ptr<caffe::Layer > netLayer = net->layer_by_name("data"); Error 2: CAFFE_classifier.cpp:106:80: error: invalid initialization of reference of type 'const boost::shared_ptrcaffe::Blob&' from expression of type 'const std::shared_ptrcaffe::Blob' const boost::shared_ptr<Blob >& probLayer = net->blob_by_name("prob");

Please help me what i have to do...thank you

karthikeyan-kandasamy avatar Jun 17 '15 09:06 karthikeyan-kandasamy

any solution yet?

mhs-achyut avatar Jun 25 '20 16:06 mhs-achyut