Anteru's blog
  • Consulting
  • Research
    • Assisted environment probe placement
    • Assisted texture assignment
    • Edge-Friend: Fast and Deterministic Catmull-Clark Subdivision Surfaces
    • Error Metrics for Smart Image Refinement
    • High-Quality Shadows for Streaming Terrain Rendering
    • Hybrid Sample-based Surface Rendering
    • Interactive rendering of Giga-Particle Fluid Simulations
    • Quantitative Analysis of Voxel Raytracing Acceleration Structures
    • Real-time Hybrid Hair Rendering
    • Real-Time Procedural Generation with GPU Work Graphs
    • Scalable rendering for very large meshes
    • Spatiotemporal Variance-Guided Filtering for Motion Blur
    • Subpixel Reconstruction Antialiasing
    • Tiled light trees
    • Towards Practical Meshlet Compression
  • About
  • Archive

Migrating from Boost 1.35 to TR1

April 08, 2008
  • Programming
approximately 1 minutes to read

Just porting some stuff over to TR1, here some things that you need to take care of:

  • For easy migration, prefer to use the boost/tr1/ headers, as they provide a fall-back to Boost if TR1 is not available.
  • std::tr1::function has no empty () function, use if (function_object) instead.
  • std::tr1::tuple has no get member function, use std::tr1::get<0> (tuple_instance) instead. For some reason or another, no ADL is possible here.
  • boost::bind provides the placeholders _1, _2, etc., while std::tr1::bind doesn’t – I’d stick with boost::bind as the _1 placeholders are very convenient.
  • There is no scoped_array, shared_array in <memory> – use Boost for this.
Previous post
Next post

Recent posts

  • Data formats: Why CSV and JSON aren't the best
    Posted on 2024-12-29
  • Replacing cron with systemd-timers
    Posted on 2024-04-21
  • Open Source Maintenance
    Posted on 2024-04-02
  • Angular, Caddy, Gunicorn and Django
    Posted on 2023-10-21
  • Effective meetings
    Posted on 2022-09-12
  • Older posts

Find me on the web

  • GitHub
  • GPU database
  • Projects

Follow me

Anteru NIV_Anteru
Contents © 2005-2025
Anteru
Imprint/Impressum
Privacy policy/Datenschutz
Made with Liara
Last updated February 03, 2019