# Vectors in 5.28.00

**URL:** <https://root-forum.cern.ch/t/vectors-in-5-28-00/11846>\
**Category:** ROOT\
**Created:** [February 9, 2011, 1:17pm UTC](https://root-forum.cern.ch/t/vectors-in-5-28-00/11846 "2011-02-09T13:17:57Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![apinder](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@apinder](https://root-forum.cern.ch/u/apinder)\
**Post date:** [February 9, 2011, 1:17pm UTC](https://root-forum.cern.ch/t/vectors-in-5-28-00/11846/1 "2011-02-09T13:17:57Z")

</div>

Hi there,

I have recently updated my Root version to 5.28, and my compiled code, which ran fine in 5.26, now throws some mysterious errors. The problem seems to be that Root no longer recognises stl vectors as valid TBranches. So something like this:

// HEADER  
vector\* b\_jetHad\_pt;

// IMPLEMENTATION  
b\_jetHad\_pt = new vector;  
oxsusy-\>Branch(“jetHad\_pt”,&b\_jetHad\_pt); // oxsusy is the name of my TTree

Used to be valid, but now I get errors at runtime:

Error in TTree::Branch: The pointer specified for jetHad\_pt is not of a class known to ROOT

I am doing #include at the top of my header file. As I say, this worked fine in the old release (I can’t keep using 5.26 for unrelated reasons). As a check I just went back and ran my code under 5.26 (without changing anything) and it worked beautifully. Any ideas?

Thanks,

Alex

---

_[View the full topic](https://root-forum.cern.ch/t/vectors-in-5-28-00/11846)._
