{"action":"closed","issue":{"url":"https://api.github.com/repos/trilinos/Trilinos/issues/949","repository_url":"https://api.github.com/repos/trilinos/Trilinos","labels_url":"https://api.github.com/repos/trilinos/Trilinos/issues/949/labels{/name}","comments_url":"https://api.github.com/repos/trilinos/Trilinos/issues/949/comments","events_url":"https://api.github.com/repos/trilinos/Trilinos/issues/949/events","html_url":"https://github.com/trilinos/Trilinos/issues/949","id":197020085,"number":949,"title":"Conversion from boost shared_ptr to Teuchos::RCP","user":{"login":"guoluanjing","id":24704140,"avatar_url":"https://avatars.githubusercontent.com/u/24704140?v=3","gravatar_id":"","url":"https://api.github.com/users/guoluanjing","html_url":"https://github.com/guoluanjing","followers_url":"https://api.github.com/users/guoluanjing/followers","following_url":"https://api.github.com/users/guoluanjing/following{/other_user}","gists_url":"https://api.github.com/users/guoluanjing/gists{/gist_id}","starred_url":"https://api.github.com/users/guoluanjing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guoluanjing/subscriptions","organizations_url":"https://api.github.com/users/guoluanjing/orgs","repos_url":"https://api.github.com/users/guoluanjing/repos","events_url":"https://api.github.com/users/guoluanjing/events{/privacy}","received_events_url":"https://api.github.com/users/guoluanjing/received_events","type":"User","site_admin":false},"labels":[{"id":313561890,"url":"https://api.github.com/repos/trilinos/Trilinos/labels/Teuchos","name":"Teuchos","color":"fbca04","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-12-21T20:01:04Z","updated_at":"2016-12-22T21:47:48Z","closed_at":"2016-12-22T21:47:48Z","body":"Hello there,\r\n\r\nI just joined gitHub to ask a question about the conversion between boost shared_ptr and Teuchos::RCP.\r\n\r\nI included the header file of \"Teuchos_RCPBoostSharedPtrConversionsDecl.hpp\" from the source directory, and used the following template\r\n\r\n```\r\ntemplate<class T>\r\nRCP<T> rcp( const boost::shared_ptr<T> &sptr );\r\n```\r\n\r\nBut I've got linking errors that reads: **undefined reference to `Teuchos::RCP<MyDataClass> Teuchos::rcp<MyDataClass>(boost::shared_ptr<MyDataClass> const&)'.**\r\n\r\nMy question to you is: Is this the way to go for this conversion, and if yes, what do you think I am doing wrong here?\r\n\r\nThanks a lot in advance,\r\nLuanjing"}}
{"actor":{"display_login":"guoluanjing"}}