Use Boost range adaptors for map and filter method