title: How to enable nanoseconds in boost::posix_time?
body: <p>I want to use <code>nanoseconds</code> type define in <code>boost::posix_time</code> but it appears that this type is not defined. I looked in the implementation and it looks like the type definition is protected by</p>
  
  <pre><code>#if defined(BOOST_DATE_TIME_HAS_NANOSECONDS)
  </code></pre>
  
  <p>so I added to my code</p>
  
  <pre><code># define BOOST_DATE_TIME_HAS_NANOSECONDS
  </code></pre>
  
  <p>but I keep getting the same compilation error. I in some pages on the web I saw that I might need to rebuild my boost library which is perfectly fine with me but I didn't see any related flags in <code>bootstrap.sh</code> or <code>b2</code> and even if that was the problem I would expect this problem to appear during linkage not compilation. Any ideas what is the problem? Thanks in advance.</p>