Comments (3)
I found it, the get
and put
are defined in global namespace in <boost/property_map/property_map.hpp>
. And it explained why ADL does not work here.
// These need to go in global namespace because Koenig
// lookup does not apply to T*.
// V must be convertible to T
template <class T, class V>
inline void put(T* pa, std::ptrdiff_t k, const V& val) { pa[k] = val; }
template <class T>
inline const T& get(const T* pa, std::ptrdiff_t k) { return pa[k]; }
I will leave it open for a day in case other people are interested.
from boost_graph_cookbook_1.
Actually, I might be wrong. The get
and put
signature doesn't look quite similar to the signatures in boost graph library, get(boost::vertex_name, g)
.
from boost_graph_cookbook_1.
Well spotted! You can assume that I try hard to be consistent and I would not omit boost::
without reason.
I suggest to close this Issue, others can find it by searching the GitHub from now. Agree? If yes, please close 👍
from boost_graph_cookbook_1.
Related Issues (20)
- optimize travis ci HOT 3
- Algorithm 42: get direct neighbour subgraph from a vertex descriptor is not working properly HOT 1
- Count the number of levels in an undirected graph HOT 14
- in_edge() function only work with undirected graph and bidirectional graph HOT 1
- Mention @mywtfmp3 in acknowledgements HOT 2
- Syntax highlighting for C++ code in lyx HOT 2
- travis build HOT 3
- 1. Finalize version HOT 1
- 2. Remove chapters HOT 2
- 3. Rename tutorial HOT 10
- 4. Connect to 'Boost.Graph Cookbook 2: Algorithms' HOT 5
- What are the new branches for? HOT 2
- Add is_directed and is_undirected to test case of graph creation HOT 3
- Remove Boost.Any warnings HOT 3
- std::ifstream can be constructed directly from std::string HOT 2
- Add to tutorial HOT 2
- Use clang-format to format our code HOT 4
- Get 100% on codecov display
- Get book in paper HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from boost_graph_cookbook_1.