File tree 1 file changed +15
-0
lines changed 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change 1843
1843
</ pre >
1844
1844
</ div >
1845
1845
1846
+ < p > Unfortunately, these implicit conversions come at a cost; they prevent
1847
+ these iterators from conforming to standard iterator conventions, and thus
1848
+ from being usable with standard algorithms and containers. For example, it
1849
+ prevents the following code, where < tt > B</ tt > is a < tt > BasicBlock</ tt > ,
1850
+ from compiling:</ p >
1851
+
1852
+ < div class ="doc_code ">
1853
+ < pre >
1854
+ llvm::SmallVector<llvm::Instruction *, 16>(B->begin(), B->end());
1855
+ </ pre >
1856
+ </ div >
1857
+
1858
+ < p > Because of this, these implicit conversions may be removed some day,
1859
+ and < tt > operator*</ tt > changed to return a pointer instead of a reference.
1860
+
1846
1861
</ div >
1847
1862
1848
1863
<!--_______________________________________________________________________-->
You can’t perform that action at this time.
0 commit comments